From f7ef93611cb2429ec3f1f5f77befcd1b5647be37 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 8 Nov 2012 19:09:35 +0000 Subject: Removed the SquirrelVM. It has been crashing the server. http://forum.mc-server.org/showthread.php?tid=610 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1024 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/squirrelbindings/SquirrelFunctions.cpp | 28 +++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'source/squirrelbindings/SquirrelFunctions.cpp') diff --git a/source/squirrelbindings/SquirrelFunctions.cpp b/source/squirrelbindings/SquirrelFunctions.cpp index b6410ad2e..0e35f7361 100644 --- a/source/squirrelbindings/SquirrelFunctions.cpp +++ b/source/squirrelbindings/SquirrelFunctions.cpp @@ -1,13 +1,29 @@ #include "Globals.h" + + + + + +#ifdef USE_SQUIRREL + + + + + #include "SquirrelFunctions.h" #include "SquirrelBindings.h" -#ifdef USE_SQUIRREL + + static HSQUIRRELVM squirrelvm = NULL; + + + + SQInteger runtimeErrorHandler(HSQUIRRELVM a_VM) { const SQChar *sErr = 0; @@ -67,4 +83,12 @@ void sqPrint(SQChar * text) LOGINFO("%s", text); } -#endif \ No newline at end of file + + + + +#endif // USE_SQUIRREL + + + + -- cgit v1.2.3