]> mj.ucw.cz Git - libucw.git/blobdiff - lib/lib.h
One more deadly testcase.
[libucw.git] / lib / lib.h
index 1716303afa8e24bfe1904d382bfb054545e63ab1..a36b5be6341537c7e41e168293a0391f54847dc5 100644 (file)
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -40,6 +40,7 @@
 #define GLUE(x,y) x##y
 #define GLUE_(x,y) x##_##y
 #define COMPARE(x,y) do { if ((x)<(y)) return -1; if ((x)>(y)) return 1; } while(0)
+#define REV_COMPARE(x,y) COMPARE(y,x)
 
 /* Logging */
 
@@ -69,7 +70,7 @@ void assert_failed(void) NONRET;
 #define ASSERT(x) do { if (__builtin_constant_p(x) && !(x)) assert_failed(); } while(0)
 #endif
 
-#define CPP_ASSERT(name,x) typedef char _CPP_ASSERT_##name[!!(x)-1]
+#define COMPILE_ASSERT(name,x) typedef char _COMPILE_ASSERT_##name[!!(x)-1]
 
 #ifdef LOCAL_DEBUG
 #define DBG(x,y...) log(L_DEBUG, x,##y)