mirror of
https://github.com/dhewm/dhewm3-sdk.git
synced 2024-11-24 21:41:23 +00:00
Use _exit() in AssertFailed()
Ensure application exit.
This commit is contained in:
parent
575668da57
commit
d832144482
1 changed files with 4 additions and 2 deletions
|
@ -29,6 +29,9 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#if defined( MACOS_X )
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
@ -513,7 +516,6 @@ void AssertFailed( const char *file, int line, const char *expression ) {
|
|||
__debugbreak();
|
||||
#elif defined( __GNUC__ )
|
||||
__builtin_trap();
|
||||
#else
|
||||
#error dont know how to crash :P
|
||||
#endif
|
||||
_exit(1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue