mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
LogManager: Print source location when failing assertions
This commit is contained in:
1 parent
048ae597d2
commit
2e24ee7a5f
1 file changed
+3
-3
@@ -53,9 +53,9 @@ namespace Throw {
|
||||
MFmt(fmt, fmt::make_format_args(args...));
|
||||
}
|
||||
|
||||
#define LOGMAN_THROW_A_FMT(pred, ...) \
|
||||
do { \
|
||||
LogMan::Throw::AFmt(pred, __VA_ARGS__); \
|
||||
#define LOGMAN_THROW_A_FMT(pred, format, ...) \
|
||||
do { \
|
||||
LogMan::Throw::AFmt((pred), "{}:{}, {}: " format, __FILE_NAME__, __LINE__, __FUNCTION__ __VA_OPT__(, ) __VA_ARGS__); \
|
||||
} while (0)
|
||||
#else
|
||||
static inline void AFmt(bool, const char*, ...) {}
|
||||
|
||||
Reference in new issue
Block a user