![]() |
Rosetta
3.7
|
Instead of printing a backtrace inside of an assertion failure, throw an exception. More...
Functions | |
static bool | throw_the_next_time_an_assertion_failure_is_hit (false) |
void | set_throw_on_next_assertion_failure () |
Function for unit testing only – if an assertion failure is hit, throw an exception instead of exiting. Don't let me catch you calling this function from anywhere besides a unit test. Punishment will be swift. More... | |
bool | maybe_throw_on_next_assertion_failure (char const *condition) |
Throw an exception if set_throw_on_next_assertion_failure was called since the last time this function was called. More... | |
Instead of printing a backtrace inside of an assertion failure, throw an exception.
bool maybe_throw_on_next_assertion_failure | ( | char const * | condition | ) |
Throw an exception if set_throw_on_next_assertion_failure was called since the last time this function was called.
References throw_the_next_time_an_assertion_failure_is_hit().
Referenced by utility::exit().
void set_throw_on_next_assertion_failure | ( | ) |
Function for unit testing only – if an assertion failure is hit, throw an exception instead of exiting. Don't let me catch you calling this function from anywhere besides a unit test. Punishment will be swift.
References throw_the_next_time_an_assertion_failure_is_hit().
|
static |
Referenced by maybe_throw_on_next_assertion_failure(), and set_throw_on_next_assertion_failure().