diff options
| author | Scott Mansell <phiren@gmail.com> | 2015-11-20 01:11:29 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2015-11-20 01:11:29 +1300 |
| commit | 2ca07f348534370611762cfff0e2eecdba460ed7 (patch) | |
| tree | a0ea37617f48afedef49a5ad210eb0624f0a686f /Source/Core | |
| parent | 41f9d4f5fa8934ac7dd13cc4ac31cb90d29b97a8 (diff) | |
| parent | 5f1fcf4c8d5753c9e1babdf408160d3c002c159f (diff) | |
Merge pull request #3272 from Sonicadvance1/we_love_traps
Use __builtin_trap for our crash define instead of int3/exit
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Common/CommonFuncs.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/Core/Common/CommonFuncs.h b/Source/Core/Common/CommonFuncs.h index 7fe99c6e73..317922a64e 100644 --- a/Source/Core/Common/CommonFuncs.h +++ b/Source/Core/Common/CommonFuncs.h @@ -36,11 +36,7 @@ constexpr size_t ArraySize(T (&arr)[N]) #endif // go to debugger mode - #ifdef _M_X86 - #define Crash() {asm ("int $3");} - #else - #define Crash() { exit(1); } - #endif +#define Crash() { __builtin_trap(); } // GCC 4.8 defines all the rotate functions now // Small issue with GCC's lrotl/lrotr intrinsics is they are still 32bit while we require 64bit |
