bn::assert namespace

Assert related functions.

Typedefs

using callback_type = void(*)()
Assert callback type alias.

Functions

auto callback() -> callback_type
Returns the user function called when an assert is triggered, before stopping execution.
void set_callback(callback_type callback)
Sets the user function called when an assert is triggered, before stopping execution.

Typedef documentation

using bn::assert::callback_type = void(*)()

Assert callback type alias.

Function documentation

callback_type bn::assert::callback()
#include <bn_assert.h>

Returns the user function called when an assert is triggered, before stopping execution.

void bn::assert::set_callback(callback_type callback)
#include <bn_assert.h>

Sets the user function called when an assert is triggered, before stopping execution.