egl: Add STATIC_ASSERT() macro

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
Chad Versace 2014-01-07 14:23:49 -08:00
parent eef68a9094
commit cefa06cd69
1 changed files with 5 additions and 0 deletions

View File

@ -89,4 +89,9 @@
# define __FUNCTION__ __func__
#endif
#define STATIC_ASSERT(COND) \
do { \
(void) sizeof(char [1 - 2*!(COND)]); \
} while (0)
#endif /* EGLCOMPILER_INCLUDED */