projects
/
apps
/
core
/
preloaded
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e8bdbf
)
Add ASSERT_STATIC_EXPR macro
author
Behdad Esfahbod
<behdad@behdad.org>
Thu, 21 Apr 2011 20:34:22 +0000
(16:34 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Thu, 21 Apr 2011 20:34:22 +0000
(16:34 -0400)
Unused right now.
src/hb-private.hh
patch
|
blob
|
history
diff --git
a/src/hb-private.hh
b/src/hb-private.hh
index
ae52889
..
85561d2
100644
(file)
--- a/
src/hb-private.hh
+++ b/
src/hb-private.hh
@@
-78,6
+78,8
@@
HB_BEGIN_DECLS
#define _ASSERT_STATIC0(_line, _cond) _ASSERT_STATIC1 (_line, (_cond))
#define ASSERT_STATIC(_cond) _ASSERT_STATIC0 (__LINE__, (_cond))
+#define ASSERT_STATIC_EXPR(_cond) ((void) sizeof (char[(_cond) ? 1 : -1]))
+
/* Lets assert int types. Saves trouble down the road. */