diff options
author | Chad Versace <[email protected]> | 2014-01-07 14:23:49 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2014-03-17 15:39:23 -0700 |
commit | cefa06cd6967f2c2db2acfb54a4bf3be398a3ce8 (patch) | |
tree | 2e4cb229c7a68e9082246430fe5fd6f5cdadac99 /src/egl/main/eglcompiler.h | |
parent | eef68a9094396ee85f73a94911f8919d232b9a08 (diff) |
egl: Add STATIC_ASSERT() macro
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/egl/main/eglcompiler.h')
-rw-r--r-- | src/egl/main/eglcompiler.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/egl/main/eglcompiler.h b/src/egl/main/eglcompiler.h index 2499172a1c5..53dab54384a 100644 --- a/src/egl/main/eglcompiler.h +++ b/src/egl/main/eglcompiler.h @@ -89,4 +89,9 @@ # define __FUNCTION__ __func__ #endif +#define STATIC_ASSERT(COND) \ + do { \ + (void) sizeof(char [1 - 2*!(COND)]); \ + } while (0) + #endif /* EGLCOMPILER_INCLUDED */ |