mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Common/Assert: Switch to fmt
This commit is contained in:
@ -13,10 +13,10 @@
|
||||
{ \
|
||||
if (!(_a_)) \
|
||||
{ \
|
||||
if (!PanicYesNo("An error occurred.\n\n" _fmt_ "\n\n" \
|
||||
" Condition: %s\n File: %s\n Line: %d\n Function: %s\n\n" \
|
||||
"Ignore and continue?", \
|
||||
##__VA_ARGS__, #_a_, __FILE__, __LINE__, __func__)) \
|
||||
if (!PanicYesNoFmt("An error occurred.\n\n" _fmt_ "\n\n" \
|
||||
" Condition: {}\n File: {}\n Line: {}\n Function: {}\n\n" \
|
||||
"Ignore and continue?", \
|
||||
##__VA_ARGS__, #_a_, __FILE__, __LINE__, __func__)) \
|
||||
Crash(); \
|
||||
} \
|
||||
} while (0)
|
||||
@ -33,10 +33,10 @@
|
||||
{ \
|
||||
if (!(_a_)) \
|
||||
{ \
|
||||
if (!PanicYesNo("An error occurred.\n\n" \
|
||||
" Condition: %s\n File: %s\n Line: %d\n Function: %s\n\n" \
|
||||
"Ignore and continue?", \
|
||||
#_a_, __FILE__, __LINE__, __func__)) \
|
||||
if (!PanicYesNoFmt("An error occurred.\n\n" \
|
||||
" Condition: {}\n File: {}\n Line: {}\n Function: {}\n\n" \
|
||||
"Ignore and continue?", \
|
||||
#_a_, __FILE__, __LINE__, __func__)) \
|
||||
Crash(); \
|
||||
} \
|
||||
} while (0)
|
||||
|
Reference in New Issue
Block a user