From 1b14ac0851846556a85670990e7530581fab26a8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 27 Feb 2004 15:32:59 +0000 Subject: [PATCH] Added CPP_ASSERT. --- lib/lib.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/lib.h b/lib/lib.h index b737c677..1716303a 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -69,6 +69,8 @@ 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] + #ifdef LOCAL_DEBUG #define DBG(x,y...) log(L_DEBUG, x,##y) #else -- 2.39.5