use ForceCrashHandler
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "global.h"
|
||||
|
||||
#ifdef _WINDOWS
|
||||
#if defined(_WINDOWS)
|
||||
#include "windows.h"
|
||||
void NORETURN sm_crash()
|
||||
{
|
||||
@@ -11,6 +11,13 @@ void NORETURN sm_crash()
|
||||
* to a jmp; that way, this function will appear in backtrace stack traces. */
|
||||
_asm nop;
|
||||
}
|
||||
#elif defined(LINUX) || defined(DARWIN)
|
||||
#include "archutils/Unix/CrashHandler.h"
|
||||
void NORETURN sm_crash()
|
||||
{
|
||||
ForceCrashHandler( "Internal error" );
|
||||
_exit( 1 );
|
||||
}
|
||||
#else
|
||||
void NORETURN sm_crash()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user