summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-13 23:29:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-13 23:29:45 +0300
commit1ae48312fe346dc8cd084f60840ff70972d2d384 (patch)
tree1b5f92a034f0c01a3b751129965420b81a107b6f /src
parent1c7c54e8102f1f449ffe7dfaa3a041915079d290 (diff)
downloadmv-1ae48312fe346dc8cd084f60840ff70972d2d384.tar.gz
mv-1ae48312fe346dc8cd084f60840ff70972d2d384.tar.bz2
mv-1ae48312fe346dc8cd084f60840ff70972d2d384.tar.xz
mv-1ae48312fe346dc8cd084f60840ff70972d2d384.zip
Move CHECKLISTENERS macro from debug.h into localconsts.h.
Diffstat (limited to 'src')
-rw-r--r--src/debug.h13
-rw-r--r--src/localconsts.h12
2 files changed, 12 insertions, 13 deletions
diff --git a/src/debug.h b/src/debug.h
index d803a6d74..9980a2c33 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -86,16 +86,3 @@
#define MPHYSFSRWOPS_openRead(name) PHYSFSRWOPS_openRead(name)
#endif // DEBUG_PHYSFS
-
-
-#ifdef ENABLE_CHECKS
-
-#define CHECKLISTENERS \
- config.checkListeners(this, __FILE__, __LINE__); \
- serverConfig.checkListeners(this, __FILE__, __LINE__);
-
-#else // ENABLE_CHECKS
-
-#define CHECKLISTENERS
-
-#endif // ENABLE_CHECKS
diff --git a/src/localconsts.h b/src/localconsts.h
index 35ccf1f78..9783e06f0 100644
--- a/src/localconsts.h
+++ b/src/localconsts.h
@@ -86,6 +86,18 @@
#define FOR_EACHP(type, iter, array) for (type iter = array->begin(), \
iter##_end = array->end(); iter != iter##_end; ++ iter)
+#ifdef ENABLE_CHECKS
+
+#define CHECKLISTENERS \
+ config.checkListeners(this, __FILE__, __LINE__); \
+ serverConfig.checkListeners(this, __FILE__, __LINE__);
+
+#else // ENABLE_CHECKS
+
+#define CHECKLISTENERS
+
+#endif // ENABLE_CHECKS
+
// #define DEBUG_CONFIG 1
// #define DEBUG_BIND_TEXTURE 1
// #define DISABLE_RESOURCE_CACHING 1