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