diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-06-09 13:26:44 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-06-09 13:26:44 +0200 |
commit | b8177409a1a390b52490fe957cff35ad47b4f214 (patch) | |
tree | 6b8a54741fa2e569911067a95b40a5d2190ef4ec /crawl-ref/source/debug.h | |
parent | 7638acb84bfd181e8809403b61242292b972b7ff (diff) | |
download | crawl-ref-b8177409a1a390b52490fe957cff35ad47b4f214.tar.gz crawl-ref-b8177409a1a390b52490fe957cff35ad47b4f214.zip |
Don't require ", c1" in COMPILE_CHECK().
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r-- | crawl-ref/source/debug.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h index 61e4857a3a..577eca5853 100644 --- a/crawl-ref/source/debug.h +++ b/crawl-ref/source/debug.h @@ -27,9 +27,9 @@ #ifndef _lint -#define COMPILE_CHECK(expr, tag) typedef char compile_check_ ## tag[(expr) ? 1 : -1] +#define COMPILE_CHECK(expr) typedef char compile_check_ ## __LINE__[(expr) ? 1 : -1] #else -#define COMPILE_CHECK(expr, tag) +#define COMPILE_CHECK(expr) #endif #if defined(DEBUG) && !defined(ASSERTS) |