Trigger panic breakpoint after printing the message
This commit is contained in:
parent
94189e5b58
commit
15a573f3a7
@ -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 ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user