summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2010-05-16 00:54:31 -0700
committerSteven Noonan <steven@uplinklabs.net>2010-05-16 00:54:31 -0700
commit7791ac98b2223e69412aea8f4f86ccb84aaaa7b5 (patch)
treec042174ed183749d6f74fec6e9c77062aefb4447 /crawl-ref/source/debug.h
parentbc53cf6f910bc7826b3c49362cd7f01848f51917 (diff)
downloadcrawl-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.h6
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