36#ifdef RC_DISABLE_ASSERTS
38# define rcAssert(x) do { (void)sizeof(x); } while ((void)(__LINE__==-1), false)
41# define rcAssert(expression) \
43 rcAssertFailFunc* failFunc = rcAssertFailGetCustom(); \
44 if (failFunc == NULL) { assert(expression); } \
45 else if (!(expression)) { (*failFunc)(#expression, __FILE__, __LINE__); } \
41# define rcAssert(expression) \ …
void() rcAssertFailFunc(const char *expression, const char *file, int line)
An assertion failure callback function.
Definition RecastAssert.h:27
rcAssertFailFunc * rcAssertFailGetCustom()
Gets the base custom assertion failure function to be used by Recast.
Definition RecastAssert.cpp:28
void rcAssertFailSetCustom(rcAssertFailFunc *assertFailFunc)
Sets the base custom assertion failure callback function to be used by Recast.
Definition RecastAssert.cpp:23