mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-01-31 13:40:38 +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:
parent
238a21b95f
commit
795b77a896
1 changed files with 4 additions and 0 deletions
|
@ -1355,7 +1355,11 @@ static void Com_Crash_f( const idCmdArgs &args ) {
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
__builtin_trap();
|
||||
#else
|
||||
* ( int * ) 0 = 0x12345678;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue