From dcb7026f33cbcdf60e9b7fcdd44c64cc08702c74 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Apr 2011 16:34:22 -0400 Subject: [PATCH] Add ASSERT_STATIC_EXPR macro Unused right now. --- src/hb-private.hh | 2 ++ 1 file changed, 2 insertions(+) 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 @@ 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. */ -- 2.7.4