diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-08 20:09:35 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-08 20:09:35 +0100 |
commit | f7ef93611cb2429ec3f1f5f77befcd1b5647be37 (patch) | |
tree | 37a4899bac07800f753c89d44c115b9f570455ed /source/squirrelbindings/SquirrelBindings.cpp | |
parent | Hotfix for ThuGie's crash, with a sanity check in debug mode. (diff) | |
download | cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.gz cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.bz2 cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.lz cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.xz cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.tar.zst cuberite-f7ef93611cb2429ec3f1f5f77befcd1b5647be37.zip |
Diffstat (limited to '')
-rw-r--r-- | source/squirrelbindings/SquirrelBindings.cpp | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/source/squirrelbindings/SquirrelBindings.cpp b/source/squirrelbindings/SquirrelBindings.cpp index 5c6b585f4..a463e55d1 100644 --- a/source/squirrelbindings/SquirrelBindings.cpp +++ b/source/squirrelbindings/SquirrelBindings.cpp @@ -1,4 +1,15 @@ +
#include "Globals.h"
+
+
+
+
+
+#ifdef USE_SQUIRREL
+
+
+
+
#include "SquirrelBindings.h"
#include "SquirrelFunctions.h"
@@ -7,9 +18,16 @@ #include "../Player.h"
+
+
+
+
using namespace Sqrat;
-#ifdef USE_SQUIRREL
+
+
+
+
void BindSquirrel(HSQUIRRELVM vm)
{
RootTable()
@@ -166,4 +184,12 @@ void BindSquirrel(HSQUIRRELVM vm) .Const("UpdatedSign", cPluginManager::HOOK_UPDATED_SIGN));
}
-#endif
\ No newline at end of file +
+
+
+
+#endif // USE_SQUIRREL
+
+
+
+
|