From b28e2aec0170930d7bdbec9288cb7318217bf06f Mon Sep 17 00:00:00 2001 From: Grunaka Date: Sun, 22 Nov 2015 17:38:16 +0100 Subject: [PATCH] Moving some define from CBot.h to CBotDefines.h. --- src/CBot/CBot.h | 5 ----- src/CBot/CBotDefines.h | 5 +++++ src/CBot/CBotStack.h | 2 ++ 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/CBot/CBot.h b/src/CBot/CBot.h index 458cfdd2..97e2919f 100644 --- a/src/CBot/CBot.h +++ b/src/CBot/CBot.h @@ -29,11 +29,6 @@ #include "CBotToken.h" // token management #include "CBotProgram.h" -#define STACKMEM 1 /// \def preserve memory for the execution stack -#define MAXSTACK 990 /// \def stack size reserved - -#define EOX (reinterpret_cast(-1)) /// \def tag special condition - ///////////////////////////////////////////////////////////////////// // forward declaration diff --git a/src/CBot/CBotDefines.h b/src/CBot/CBotDefines.h index 9830fcbf..9cb70ab7 100644 --- a/src/CBot/CBotDefines.h +++ b/src/CBot/CBotDefines.h @@ -28,6 +28,11 @@ // Global include +#define STACKMEM 1 /// \def preserve memory for the execution stack +#define MAXSTACK 990 /// \def stack size reserved + +#define EOX (reinterpret_cast(-1)) /// \def tag special condition + #define MAXARRAYSIZE 9999 // variable type SetPrivate / IsPrivate diff --git a/src/CBot/CBotStack.h b/src/CBot/CBotStack.h index 36f45b1e..283a8ae3 100644 --- a/src/CBot/CBotStack.h +++ b/src/CBot/CBotStack.h @@ -22,6 +22,8 @@ // Modules inlcude #include "CBot.h" +#include "CBotDefines.h" + // Local include // Global include