From 2e24ee7a5fb336bb8ae86b9b673948edcf5d2968 Mon Sep 17 00:00:00 2001 From: Tony Wasserka Date: Sun, 18 May 2025 10:14:32 +0200 Subject: [PATCH] LogManager: Print source location when failing assertions --- FEXCore/include/FEXCore/Utils/LogManager.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FEXCore/include/FEXCore/Utils/LogManager.h b/FEXCore/include/FEXCore/Utils/LogManager.h index 19f0110d0..6e74655c1 100644 --- a/FEXCore/include/FEXCore/Utils/LogManager.h +++ b/FEXCore/include/FEXCore/Utils/LogManager.h @@ -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*, ...) {}