Recast Navigation
Navigation-mesh Toolset for Games
Loading...
Searching...
No Matches
DetourAssert.h File Reference
#include <assert.h>

Go to the source code of this file.

Macros

#define dtAssert(expression)
 

Typedefs

typedef void() dtAssertFailFunc(const char *expression, const char *file, int line)
 An assertion failure function.
 

Functions

void dtAssertFailSetCustom (dtAssertFailFunc *assertFailFunc)
 Sets the base custom assertion failure function to be used by Detour.
 
dtAssertFailFuncdtAssertFailGetCustom ()
 Gets the base custom assertion failure function to be used by Detour.
 

Macro Definition Documentation

◆ 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
void() dtAssertFailFunc(const char *expression, const char *file, int line)
An assertion failure function.
Definition DetourAssert.h:37

Typedef Documentation

◆ dtAssertFailFunc

typedef void() dtAssertFailFunc(const char *expression, const char *file, int line)

An assertion failure function.

See also
dtAssertFailSetCustom

Function Documentation

◆ dtAssertFailGetCustom()

dtAssertFailFunc * dtAssertFailGetCustom ( )

Gets the base custom assertion failure function to be used by Detour.

◆ dtAssertFailSetCustom()

void dtAssertFailSetCustom ( dtAssertFailFunc assertFailFunc)

Sets the base custom assertion failure function to be used by Detour.

Parameters
[in]assertFailFuncThe function to be invoked in case of failure of dtAssert