Defines | |
#define | assert(_x_) |
Evaluate an assertion and catch problems. | |
#define | vm_fatal(_str) _vm_assert_fail( _str , __FILE__, __LINE__, __func__ ) |
Trig a failure by hand. | |
Functions | |
void | _vm_assert_fail (const char *assertion, const char *file, unsigned int line, const char *function) |
Is called when an assertion has failed. Kills the concerned thread. |
#define assert | ( | _x_ | ) |
Value:
((_x_) \ ? ((void)0) \ : _vm_assert_fail( "Assertion failed : " #_x_ , __FILE__, __LINE__, __func__ ))
#define vm_fatal | ( | _str | ) | _vm_assert_fail( _str , __FILE__, __LINE__, __func__ ) |
Trig a failure by hand.
void _vm_assert_fail | ( | const char * | assertion, | |
const char * | file, | |||
unsigned int | line, | |||
const char * | function | |||
) |
Is called when an assertion has failed. Kills the concerned thread.