Function set_assert_handler

Synopsis

#include "breeze/diagnostics/assert.hpp"

void set_assert_handler(assert_handler_type *f)

Description

Sets *f as the current "assert handler", i.e. as the function which is called by BREEZE_ASSERT( expression ) if expression evaluates to false.

At program start up, the assert handler is default_assert_handler().

Parameters

f - Pointer to the assert handler to set. The handler must not return: it must either terminate the program or emit an exception.

Source

Line 58 in breeze/diagnostics/assert.hpp.