Make callables.c error properly if it's attempted compiled separately.

Originally committed to SVN as r2817.
This commit is contained in:
Niels Martin Hansen 2009-04-17 20:55:48 +00:00
parent 8a5933385d
commit 5a76711a19
2 changed files with 4 additions and 0 deletions

View File

@ -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"

View File

@ -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)