]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/debugging/debugging.h
Wrap GTK
[xonotic/netradiant.git] / libs / debugging / debugging.h
index c549a2f2072a9f3e72a62a6ebf5c2e49a94cc348..e05ff31b41ecd10b0a013652979e0ab000be1f52 100644 (file)
@@ -117,6 +117,7 @@ inline DebugMessageHandler& globalDebugMessageHandler(){
                if ( !globalDebugMessageHandler().handleMessage() ) { DEBUGGER_BREAKPOINT(); }} while ( 0 )
 
 #define ASSERT_NOTNULL( ptr ) ASSERT_MESSAGE( ptr != 0, "pointer \"" # ptr "\" is null" )
+#define ASSERT_TRUE( flag ) ASSERT_MESSAGE( !!(flag) == true, "condition \"" # flag "\" is false" )
 
 #else