diff options
author | Brian Nguyen <brnguyen@nvidia.com> | 2014-01-23 19:24:41 -0800 |
---|---|---|
committer | brnguyen <brnguyen@nvidia.com> | 2014-01-23 19:31:35 -0800 |
commit | c21e44e609c49ef6618327a6fcf74929dc5d4b10 (patch) | |
tree | 42606262ff49662236d71854eacb67ec5db23a2a /include | |
parent | 82600cccb2c2546fd8e80a2d7d661ba1a63756c4 (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')
-rw-r--r-- | include/compiler.h | 12 |
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 |