MCPcopy Create free account
hub / github.com/boostorg/stacktrace / assertion_failed_msg

Function assertion_failed_msg

example/assert_handler.cpp:35–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34namespace boost {
35 inline void assertion_failed_msg(char const* expr, char const* msg, char const* function, char const* /*file*/, long /*line*/) {
36 std::cerr << "Expression '" << expr << "' is false in function '" << function << "': " << (msg ? msg : "<...>") << ".\n"
37 << "Backtrace:\n" << boost::stacktrace::stacktrace() << '\n';
38 /*<-*/ std::exit(0); /*->*/
39 /*=std::abort();*/
40 }
41
42 inline void assertion_failed(char const* expr, char const* function, char const* file, long line) {
43 ::boost::assertion_failed_msg(expr, 0 /*nullptr*/, function, file, line);

Callers 1

assertion_failedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected