diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-16 08:47:09 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-16 08:47:09 +0200 |
commit | 1c4c0b5698984ebe4a035f6b8a291c581a9cb21e (patch) | |
tree | ae5b417cca7f33ae63263d6172b1aa49006a136c /source/squirrelbindings | |
parent | Compiles on Android! Added Eclipse project, import it into your workspace and it should be runnable on Android! (diff) | |
download | cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.gz cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.bz2 cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.lz cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.xz cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.tar.zst cuberite-1c4c0b5698984ebe4a035f6b8a291c581a9cb21e.zip |
Diffstat (limited to '')
-rw-r--r-- | source/squirrelbindings/SquirrelBindings.cpp | 2 | ||||
-rw-r--r-- | source/squirrelbindings/SquirrelBindings.h | 4 | ||||
-rw-r--r-- | source/squirrelbindings/SquirrelFunctions.cpp | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/source/squirrelbindings/SquirrelBindings.cpp b/source/squirrelbindings/SquirrelBindings.cpp index c24b82c70..3d1f3ff30 100644 --- a/source/squirrelbindings/SquirrelBindings.cpp +++ b/source/squirrelbindings/SquirrelBindings.cpp @@ -9,7 +9,7 @@ using namespace Sqrat;
-#if USE_SQUIRREL
+#ifdef USE_SQUIRREL
void BindSquirrel(HSQUIRRELVM vm)
{
RootTable()
diff --git a/source/squirrelbindings/SquirrelBindings.h b/source/squirrelbindings/SquirrelBindings.h index d5aee170a..e16311d6a 100644 --- a/source/squirrelbindings/SquirrelBindings.h +++ b/source/squirrelbindings/SquirrelBindings.h @@ -1,9 +1,7 @@ #pragma once
-#define USE_SQUIRREL 0
-
-#if USE_SQUIRREL
+#ifdef USE_SQUIRREL
#include <squirrel.h>
#include <sqrat.h>
diff --git a/source/squirrelbindings/SquirrelFunctions.cpp b/source/squirrelbindings/SquirrelFunctions.cpp index b965c63ab..b6410ad2e 100644 --- a/source/squirrelbindings/SquirrelFunctions.cpp +++ b/source/squirrelbindings/SquirrelFunctions.cpp @@ -4,7 +4,7 @@ #include "SquirrelBindings.h"
-#if USE_SQUIRREL
+#ifdef USE_SQUIRREL
static HSQUIRRELVM squirrelvm = NULL;
|