summaryrefslogtreecommitdiff
path: root/src/debug.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-23 02:46:39 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-23 14:40:54 +0300
commitfcddd8c0dab52900ded0c4faafd635aa6416425f (patch)
treefd6b46caac9adb95654c84daaf9f476895a7d4b0 /src/debug.h
parent35bce2462822ebbab20231f05a9efe689455d736 (diff)
downloadManaVerse-fcddd8c0dab52900ded0c4faafd635aa6416425f.tar.gz
ManaVerse-fcddd8c0dab52900ded0c4faafd635aa6416425f.tar.bz2
ManaVerse-fcddd8c0dab52900ded0c4faafd635aa6416425f.tar.xz
ManaVerse-fcddd8c0dab52900ded0c4faafd635aa6416425f.zip
Add false and true condition logging.
Diffstat (limited to 'src/debug.h')
-rw-r--r--src/debug.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/debug.h b/src/debug.h
index 4b3934922..64a83e51c 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -23,6 +23,19 @@
//#define DEBUG_JOYSTICK 1
#ifdef ENABLE_MEM_DEBUG
+
//define _DEBUG_NEW_EMULATE_MALLOC 1
#include "debug/debug_new.h"
+
+#define reportFalse(val) reportFalse1(val, __FILE__, __LINE__)
+#define reportFalse1(val, file, line) reportFalseReal(val, file, line)
+
+#define reportTrue(val) reportTrue1(val, __FILE__, __LINE__)
+#define reportTrue1(val, file, line) reportTrueReal(val, file, line)
+
+#else
+
+#define reportFalse(val) (val)
+#define reportTrue(val) (val)
+
#endif