Function default_assert_handler

Synopsis

#include "breeze/diagnostics/assert.hpp"

void default_assert_handler(char const *expression_text, char const *file_name, long line_number) noexcept

Description

The default assert handler for BREEZE_ASSERT().

Writes the passed in arguments to std::cerr, then flushes std::cerr, then calls std::abort().

Note
Since this is a noexcept function, the program will terminate anyway if writing to std::cerr causes an exception to be emitted (this means that such an exception will not hide the programming error detected thanks to the assertion).

Source

Line 76 in breeze/diagnostics/assert.hpp.