void __cdecl onSignalAbort(int code) { UNUSED(code); // put the signal back because can be called many times // (from multiple threads) and raise() resets the handler signal(SIGABRT, onSignalAbort); CrashMe(); }
// shadow crt's _purecall() so that we're called instead of CRT int __cdecl _purecall() { CrashMe(); return 0; }
void onUnexpected() { CrashMe(); }
void onTerminate() { CrashMe(); }