mirror of https://github.com/odrling/Aegisub
Make callables.c error properly if it's attempted compiled separately.
Originally committed to SVN as r2817.
This commit is contained in:
parent
2d64f5079f
commit
a3600f8ca1
|
@ -344,6 +344,7 @@ static int Auto3ParseConfigData(lua_State *L, struct Auto3Interpreter *script, c
|
|||
|
||||
|
||||
// Keeping this file a bit shorter: put all functions called from Lua into a separate file
|
||||
#define BUILDING_AUTO3_C
|
||||
#include "callables.c"
|
||||
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@
|
|||
//
|
||||
|
||||
// DO NOT compile this file separately! It's included as part of auto3.c
|
||||
#ifndef BUILDING_AUTO3_C
|
||||
# error callables.c can not be compiled separately. It is included as part of auto3.c.
|
||||
#endif
|
||||
|
||||
|
||||
static struct Auto3Interpreter* GetScriptObject(lua_State *L)
|
||||
|
|
Loading…
Reference in New Issue