#include <assert.h>
Go to the source code of this file.
|
typedef void() | rcAssertFailFunc(const char *expression, const char *file, int line) |
| An assertion failure function. More...
|
|
◆ rcAssert
#define rcAssert |
( |
|
expression | ) |
|
Value: { \
if (failFunc == NULL) { assert(expression); } \
else if (!(expression)) { (*failFunc)(#expression, __FILE__, __LINE__); } \
}
rcAssertFailFunc * rcAssertFailGetCustom()
Gets the base custom assertion failure function to be used by Recast.
Definition: RecastAssert.cpp:30
◆ rcAssertFailFunc
typedef void() rcAssertFailFunc(const char *expression, const char *file, int line) |
◆ rcAssertFailGetCustom()
Gets the base custom assertion failure function to be used by Recast.
◆ rcAssertFailSetCustom()
Sets the base custom assertion failure function to be used by Recast.
- Parameters
-
[in] | assertFailFunc | The function to be used in case of failure of dtAssert |