summaryrefslogtreecommitdiff
path: root/include/compiler.h
diff options
context:
space:
mode:
authorBrian Nguyen <brnguyen@nvidia.com>2014-01-23 19:24:41 -0800
committerbrnguyen <brnguyen@nvidia.com>2014-01-23 19:31:35 -0800
commitc21e44e609c49ef6618327a6fcf74929dc5d4b10 (patch)
tree42606262ff49662236d71854eacb67ec5db23a2a /include/compiler.h
parent82600cccb2c2546fd8e80a2d7d661ba1a63756c4 (diff)
[util] Add STATIC_ASSERT() and UNUSED macros to utils_misc.h
Also remove a duplicate STATIC_ASSERT() macro from include/compiler.h.
Diffstat (limited to 'include/compiler.h')
-rw-r--r--include/compiler.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/include/compiler.h b/include/compiler.h
index fb7baf8..5f5031d 100644
--- a/include/compiler.h
+++ b/include/compiler.h
@@ -248,18 +248,6 @@ static INLINE GLuint CPU_TO_LE32(GLuint x)
#endif
#endif
-
-/**
- * Static (compile-time) assertion.
- * Basically, use COND to dimension an array. If COND is false/zero the
- * array size will be -1 and we'll get a compilation error.
- */
-#define STATIC_ASSERT(COND) \
- do { \
- (void) sizeof(char [1 - 2*!(COND)]); \
- } while (0)
-
-
#if (__GNUC__ >= 3)
#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
#else