19 #ifndef DETOURASSERT_H
20 #define DETOURASSERT_H
25 #ifdef RC_DISABLE_ASSERTS
28 # define dtAssert(x) do { (void)sizeof(x); } while((void)(__LINE__==-1),false)
47 # define dtAssert(expression) \
49 dtAssertFailFunc* failFunc = dtAssertFailGetCustom(); \
50 if(failFunc == NULL) { assert(expression); } \
51 else if(!(expression)) { (*failFunc)(#expression, __FILE__, __LINE__); } \
void dtAssertFailSetCustom(dtAssertFailFunc *assertFailFunc)
Sets the base custom assertion failure function to be used by Detour.
Definition: DetourAssert.cpp:25
dtAssertFailFunc * dtAssertFailGetCustom()
Gets the base custom assertion failure function to be used by Detour.
Definition: DetourAssert.cpp:30
void() dtAssertFailFunc(const char *expression, const char *file, int line)
An assertion failure function.
Definition: DetourAssert.h:37