| 33 | |
| 34 | namespace 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); |