aboutsummaryrefslogtreecommitdiff
path: root/src/dolphin/Log.h
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2019-07-14 02:37:32 +0200
committerRSDuck <rsduck@users.noreply.github.com>2020-06-16 11:53:11 +0200
commit0ff79ea2ad645f85f3a4878be3717ffda44f9cbe (patch)
tree9dbcb331a3600c90183a570e174c099c70112c07 /src/dolphin/Log.h
parent24aff49ae496b2401039b09e120dd0fcbd7b8e9e (diff)
jit: fix linux
Diffstat (limited to 'src/dolphin/Log.h')
-rw-r--r--src/dolphin/Log.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/dolphin/Log.h b/src/dolphin/Log.h
index 21e69a5..a7f4b6a 100644
--- a/src/dolphin/Log.h
+++ b/src/dolphin/Log.h
@@ -4,12 +4,13 @@
#include <stdio.h>
-#define PanicAlert(msg) \
- do \
- { \
- printf("%s\n", msg); \
- Crash(); \
- } while (false)
+#define PanicAlert(fmt, ...) \
+ do \
+ { \
+ printf(fmt "\n", ## __VA_ARGS__); \
+ abort(); \
+ } while (false)
+
#define DYNA_REC 0