commit | dcb7026f33cbcdf60e9b7fcdd44c64cc08702c74 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <[email protected]> | Thu Apr 21 16:34:22 2011 -0400 |
committer | Behdad Esfahbod <[email protected]> | Thu Apr 21 16:34:22 2011 -0400 |
tree | 69d39bf25086a9cfc97d453981eb13bc85725b22 | |
parent | 3e8bdbf9414291da5cf61213d5f4275c1ae23ae5 [diff] [blame] |
Add ASSERT_STATIC_EXPR macro Unused right now.
diff --git a/src/hb-private.hh b/src/hb-private.hh index ae52889..85561d2 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh
@@ -78,6 +78,8 @@ #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. */