0
0
Fork 0
mirror of https://github.com/dhewm/dhewm3.git synced 2025-03-01 15:21:18 +00:00

Fix broken forced crash for clang

clang discards stores to *0.
Use __builtin_trap() on GCC and derivates, which plays nicely with
gdb.
This commit is contained in:
dhewg 2011-12-03 01:37:52 +01:00
parent 238a21b95f
commit 795b77a896

View file

@ -1355,7 +1355,11 @@ static void Com_Crash_f( const idCmdArgs &args ) {
return; return;
} }
#ifdef __GNUC__
__builtin_trap();
#else
* ( int * ) 0 = 0x12345678; * ( int * ) 0 = 0x12345678;
#endif
} }
/* /*