diff options
author | Steven Noonan <steven@uplinklabs.net> | 2010-05-16 00:54:31 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2010-05-16 00:54:31 -0700 |
commit | 7791ac98b2223e69412aea8f4f86ccb84aaaa7b5 (patch) | |
tree | c042174ed183749d6f74fec6e9c77062aefb4447 /crawl-ref/source/debug.h | |
parent | bc53cf6f910bc7826b3c49362cd7f01848f51917 (diff) | |
download | crawl-ref-7791ac98b2223e69412aea8f4f86ccb84aaaa7b5.tar.gz crawl-ref-7791ac98b2223e69412aea8f4f86ccb84aaaa7b5.zip |
debug.h: simplify DEBUG/NDEBUG mutual exclusivity check
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r-- | crawl-ref/source/debug.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h index 00df5541b9..5baa60a47f 100644 --- a/crawl-ref/source/debug.h +++ b/crawl-ref/source/debug.h @@ -8,11 +8,7 @@ #define DEBUG_H // Synch with ANSI definitions. -#if defined(DEBUG) && defined(NDEBUG) -#error DEBUG and NDEBUG are out of sync! -#endif - -#if !defined(DEBUG) && !defined(NDEBUG) +#if !(defined(DEBUG) ^ defined(NDEBUG)) #error DEBUG and NDEBUG are out of sync! #endif |