projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
216f893
)
add static_assert macro
author
Michal Krol
<mjkrol@gmail.org>
Thu, 19 May 2005 10:22:28 +0000
(10:22 +0000)
committer
Michal Krol
<mjkrol@gmail.org>
Thu, 19 May 2005 10:22:28 +0000
(10:22 +0000)
src/mesa/shader/slang/slang_utility.h
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_utility.h
b/src/mesa/shader/slang/slang_utility.h
index 6eb5369acd193f1aa38cdd117076f46e543c5972..0240385e8d58fe9ab7aaaad830c8a12ab77feb41 100644
(file)
--- a/
src/mesa/shader/slang/slang_utility.h
+++ b/
src/mesa/shader/slang/slang_utility.h
@@
-29,6
+29,8
@@
extern "C" {
\r
#endif
\r
\r
+#define static_assert(expr) do { int _array[(expr) ? 1 : 0]; _array[0]; } while (0)
\r
+
\r
void slang_alloc_free (void *);
\r
void *slang_alloc_malloc (unsigned int);
\r
void *slang_alloc_realloc (void *, unsigned int, unsigned int);
\r