summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-02 05:14:31 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-02 05:14:31 +0000
commit9ddee55cb06790b2d7ddf07666390614c92bc71d (patch)
tree93b4528b40167b3aeed13ee210e65b5637a3007a /crawl-ref/source/debug.h
parent26302842887cde2a029061396d4f9a4df9e312ce (diff)
downloadcrawl-ref-9ddee55cb06790b2d7ddf07666390614c92bc71d.tar.gz
crawl-ref-9ddee55cb06790b2d7ddf07666390614c92bc71d.zip
Fix [ 1902141 ] Documentation wrong
- changed number comments on a few enums - added a few COMPILE_CHECKs so they'll get caught Other: - Fix COMPILE_CHECK macro so it doesn't cause a warning in gcc. - Replace ASSERT(...) with COMPILE_CHECK(...) where possible. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3501 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r--crawl-ref/source/debug.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h
index a051922bb7..631113a4c0 100644
--- a/crawl-ref/source/debug.h
+++ b/crawl-ref/source/debug.h
@@ -36,9 +36,9 @@
#ifndef _lint
-#define COMPILE_CHECK(p) {struct _CC {char a[(p) ? 1 : -1];};} 0
+#define COMPILE_CHECK(expr, tag) typedef char compile_check_ ## tag[(expr) ? 1 : -1]
#else
-#define COMPILE_CHECK(p)
+#define COMPILE_CHECK(expr, tag)
#endif
#if DEBUG