[colobot] 132/377: Moving some define from CBot.h to CBotDefines.h.

Didier Raboud odyx at moszumanska.debian.org
Wed Mar 30 13:34:07 UTC 2016


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository colobot.

commit b28e2aec0170930d7bdbec9288cb7318217bf06f
Author: Grunaka <dev at romainbreton.fr>
Date:   Sun Nov 22 17:38:16 2015 +0100

    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 458cfdd..97e2919 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<CBotStack*>(-1))   /// \def tag special condition
-
 
 /////////////////////////////////////////////////////////////////////
 // forward declaration
diff --git a/src/CBot/CBotDefines.h b/src/CBot/CBotDefines.h
index 9830fcb..9cb70ab 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<CBotStack*>(-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 36f45b1..283a8ae 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list