#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 callback function.
|
|
◆ rcAssert
#define rcAssert |
( |
|
expression | ) |
|
Value: { \
if (failFunc == NULL) { assert(expression); } \
else if (!(expression)) { (*failFunc)(#expression, __FILE__, __LINE__); } \
}
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
◆ rcAssertFailFunc
typedef void() rcAssertFailFunc(const char *expression, const char *file, int line) |
An assertion failure callback function.
- Parameters
-
[in] | expression | Asserted expression. |
[in] | file | Filename of the failed assertion. |
[in] | line | Line number of the failed assertion. |
- See also
- rcAssertFailSetCustom
◆ rcAssertFailGetCustom()
Gets the base custom assertion failure function to be used by Recast.
◆ rcAssertFailSetCustom()
Sets the base custom assertion failure callback function to be used by Recast.
- Parameters
-
[in] | assertFailFunc | The function to be used in case of failure of dtAssert |