[*] Amend panic
This commit is contained in:
parent
5aea27d56d
commit
9fb9eb4fd2
@ -26,7 +26,7 @@ namespace Aurora::Debug
|
||||
{
|
||||
::DebugBreak();
|
||||
}
|
||||
#elif defined(DEBUG)
|
||||
#elif defined(AU_CFG_ID_DEBUG) // bc nix
|
||||
#if defined(AURORA_COMPILER_MSVC)
|
||||
__debugbreak();
|
||||
#elif (defined(__has_builtin) && __has_builtin(__builtin_debugtrap))
|
||||
@ -52,9 +52,12 @@ namespace Aurora::Debug
|
||||
goto failFast;
|
||||
}
|
||||
|
||||
#if defined(AU_CFG_ID_DEBUG)
|
||||
DebugBreak();
|
||||
// Edge case: internal builds should always check for a debugger before crashing
|
||||
#if defined(AU_CFG_ID_INTERNAL) && (defined(__has_builtin) && __has_builtin(__builtin_debugtrap))
|
||||
__builtin_debugtrap();
|
||||
#endif
|
||||
//
|
||||
|
||||
if (AuExchange(gHandlingFatal, true))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user