diff --git a/neo/idlib/Lib.cpp b/neo/idlib/Lib.cpp index a575b6ab..b8bc6adc 100644 --- a/neo/idlib/Lib.cpp +++ b/neo/idlib/Lib.cpp @@ -580,9 +580,9 @@ void AssertFailed( const char *file, int line, const char *expression ) { idLib::sys->DebugPrintf( "\n\nASSERTION FAILED!\n%s(%d): '%s'\n", file, line, expression ); #ifdef _WIN32 __asm int 0x03 -#elif defined( __linux__ ) - __asm__ __volatile__ ("int $0x03"); -#elif defined( MACOS_X ) - kill( getpid(), SIGINT ); +#elif defined( __GNUC__ ) + __builtin_trap(); +#else +#error dont know how to crash :P #endif }