Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
Assert

Macros

#define GTS_INTERNAL_ASSERT(expr)
 
#define GTS_ASSERT(expr)    gts::internal::_assert((expr), #expr, __FILE__, __LINE__)
 Causes execution to break when expr is false. More...
 

Typedefs

typedef void(* gts::assertHook) (const char *)
 The assert hook type. Consumes a string of error information.
 

Functions

void gts::setAssertHook (assertHook hook)
 Sets the user defined assert hook.
 
assertHook gts::getAssertHook ()
 Gets the user defined assert hook.
 

Detailed Description

Assert functionality.

Macro Definition Documentation

◆ GTS_ASSERT

#define GTS_ASSERT (   expr)     gts::internal::_assert((expr), #expr, __FILE__, __LINE__)

Causes execution to break when expr is false.

Parameters
expressionThe boolean expression.
Remarks
Force enable by defining GTS_USE_ASSERTS