Macros | |
#define | ZB_ASSERT(expr) {if(!(expr)) zb_assert(__FILE__, __LINE__);} |
#define | ZB_INLINE_ASSERT(expr) ZB_INLINE_ASSERT_SIMPLE((expr)), |
Functions | |
void | zb_abort (char *caller_file, int caller_line) |
#define ZB_ASSERT | ( | expr | ) | {if(!(expr)) zb_assert(__FILE__, __LINE__);} |
Check for expression in runtime and call zb_assert() if it is false.
Compiled to nothing if USE_ASSERT is not defined.
expr | expression to check |
#define ZB_INLINE_ASSERT | ( | expr | ) | ZB_INLINE_ASSERT_SIMPLE((expr)), |
Assert which can be used inside an expression.
expr | - expression to check. |
void zb_abort | ( | char * | caller_file, |
int | caller_line | ||
) |
Trace current location, abort current program execution, with core dump if possible.
caller_file | - source file name |
caller_line | - line in the source |