Trigger panic breakpoint after printing the message

This commit is contained in:
Danny Robson 2012-06-12 13:04:20 +10:00
parent 94189e5b58
commit 15a573f3a7

View File

@ -31,8 +31,8 @@ using namespace std;
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void void
panic (const std::string& what) { panic (const std::string& what) {
breakpoint ();
cerr << "PANIC: " << what << "\n" << debug::backtrace () << endl; cerr << "PANIC: " << what << "\n" << debug::backtrace () << endl;
breakpoint ();
abort (); abort ();
} }