X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=libs%2Fdebugging%2Fdebugging.h;h=e05ff31b41ecd10b0a013652979e0ab000be1f52;hb=c52a4bd4da209e657018e8d799dcb488cd848e4c;hp=c549a2f2072a9f3e72a62a6ebf5c2e49a94cc348;hpb=d347e813d359c2c4c9fc72aaa25aec2e078a8390;p=xonotic%2Fnetradiant.git diff --git a/libs/debugging/debugging.h b/libs/debugging/debugging.h index c549a2f2..e05ff31b 100644 --- a/libs/debugging/debugging.h +++ b/libs/debugging/debugging.h @@ -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