diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-23 02:46:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-23 14:40:54 +0300 |
commit | fcddd8c0dab52900ded0c4faafd635aa6416425f (patch) | |
tree | fd6b46caac9adb95654c84daaf9f476895a7d4b0 /src/debug.h | |
parent | 35bce2462822ebbab20231f05a9efe689455d736 (diff) | |
download | manaplus-fcddd8c0dab52900ded0c4faafd635aa6416425f.tar.gz manaplus-fcddd8c0dab52900ded0c4faafd635aa6416425f.tar.bz2 manaplus-fcddd8c0dab52900ded0c4faafd635aa6416425f.tar.xz manaplus-fcddd8c0dab52900ded0c4faafd635aa6416425f.zip |
Add false and true condition logging.
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 13 |
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 |