mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01: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__
|
||||
#endif
|
||||
|
||||
#define STATIC_ASSERT(COND) \
|
||||
do { \
|
||||
(void) sizeof(char [1 - 2*!(COND)]); \
|
||||
} while (0)
|
||||
|
||||
#endif /* EGLCOMPILER_INCLUDED */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue