diff options
author | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-17 14:02:03 +0200 |
---|---|---|
committer | lapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-07-17 14:02:03 +0200 |
commit | f473f13585e1bc901bfeb05cd5a9bb35489595da (patch) | |
tree | 48d9f165c1c154ae5baefe9712b990f837edfd37 /source/squirrelbindings/SquirrelFunctions.cpp | |
parent | Fixed compilation on OS X and maybe *nix as well (diff) | |
download | cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.gz cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.bz2 cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.lz cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.xz cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.tar.zst cuberite-f473f13585e1bc901bfeb05cd5a9bb35489595da.zip |
Diffstat (limited to 'source/squirrelbindings/SquirrelFunctions.cpp')
-rw-r--r-- | source/squirrelbindings/SquirrelFunctions.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/squirrelbindings/SquirrelFunctions.cpp b/source/squirrelbindings/SquirrelFunctions.cpp index 88871369d..b965c63ab 100644 --- a/source/squirrelbindings/SquirrelFunctions.cpp +++ b/source/squirrelbindings/SquirrelFunctions.cpp @@ -3,6 +3,9 @@ #include "SquirrelFunctions.h"
#include "SquirrelBindings.h"
+
+#if USE_SQUIRREL
+
static HSQUIRRELVM squirrelvm = NULL;
SQInteger runtimeErrorHandler(HSQUIRRELVM a_VM)
@@ -62,4 +65,6 @@ void CloseSquirrelVM() void sqPrint(SQChar * text)
{
LOGINFO("%s", text);
-}
\ No newline at end of file +}
+
+#endif
\ No newline at end of file |