mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-11 21:21:57 -04:00
Fix CRASH() macro outside MSVC
Just add a CRASHF() overload that... isn't necessary anymore. Oh well.
This commit is contained in:
+2
-1
@@ -214,6 +214,7 @@ using std::isnan;
|
||||
#define IS_REF_NONNULL(r) (1)
|
||||
#endif
|
||||
|
||||
#define CRASH(msg, ...) OSPanic(__FILE__, __LINE__, msg, __VA_ARGS__)
|
||||
#define CRASH(msg) OSPanic(__FILE__, __LINE__, "%s", msg)
|
||||
#define CRASHF(msg, ...) OSPanic(__FILE__, __LINE__, msg, __VA_ARGS__)
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user