- group pj_assert
Assertion and other helper macros for sanity checking.
Check during debug build that an expression is true. If the expression computes to false during run-time, then the program will stop at the offending statements. For release build, this macro will not do anything.
expr – The expression to be evaluated.
If the expression yields false, assertion will be triggered and the current function will return with the specified return value.
If the expression yields false, assertion will be triggered and exec_on_fail will be executed.