diff options
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r-- | crawl-ref/source/debug.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h index e75903c81f..44571a1891 100644 --- a/crawl-ref/source/debug.h +++ b/crawl-ref/source/debug.h @@ -11,11 +11,11 @@ #include "enum.h" // Synch with ANSI definitions. -#if DEBUG && defined(NDEBUG) +#if defined(DEBUG) && defined(NDEBUG) #error DEBUG and NDEBUG are out of sync! #endif -#if !DEBUG && !defined(NDEBUG) +#if !defined(DEBUG) && !defined(NDEBUG) #error DEBUG and NDEBUG are out of sync! #endif @@ -36,7 +36,7 @@ #define COMPILE_CHECK(expr, tag) #endif -#if DEBUG +#ifdef DEBUG void AssertFailed(const char *expr, const char *file, int line); |