mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
egl: Add STATIC_ASSERT() macro
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
This commit is contained in:
parent
eef68a9094
commit
cefa06cd69
1 changed files with 5 additions and 0 deletions
|
|
@ -89,4 +89,9 @@
|
||||||
# define __FUNCTION__ __func__
|
# define __FUNCTION__ __func__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define STATIC_ASSERT(COND) \
|
||||||
|
do { \
|
||||||
|
(void) sizeof(char [1 - 2*!(COND)]); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
#endif /* EGLCOMPILER_INCLUDED */
|
#endif /* EGLCOMPILER_INCLUDED */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue