]> wimlib.net Git - wimlib/blobdiff - include/wimlib/compiler.h
decompress_common: switch to subtables for Huffman decoding
[wimlib] / include / wimlib / compiler.h
index a43bb769fdce9c752e3a75920c6ce48744133579..9f53e192fc52796e2837c016a2f20b479e05d1cf 100644 (file)
 #  define STATIC_ASSERT(expr)  ((void)sizeof(char[1 - 2 * !(expr)]))
 #endif
 
+/* STATIC_ASSERT_ZERO() - verify the truth of an expression at compilation time
+ * and also produce a result of value '0' to be used in constant expressions */
+#define STATIC_ASSERT_ZERO(expr) ((int)sizeof(char[-!(expr)]))
+
 #define CONCAT_IMPL(s1, s2)    s1##s2
 
 /* CONCAT() - concatenate two tokens at preprocessing time.  */