diff --git a/CodeEmitter/CodeEmitter/ASIMDOps.inl b/CodeEmitter/CodeEmitter/ASIMDOps.inl index 024003155..8277bd37d 100644 --- a/CodeEmitter/CodeEmitter/ASIMDOps.inl +++ b/CodeEmitter/CodeEmitter/ASIMDOps.inl @@ -3952,7 +3952,7 @@ public: L = (Index >> 0) & 1; M = 0; } else { - LOGMAN_THROW_A_FMT(std::is_same_v, "Can't encode DRegister with i64Bit"); + LOGMAN_THROW_A_FMT((std::is_same_v), "Can't encode DRegister with i64Bit"); // Index encoded in H H = Index; L = 0; @@ -3983,7 +3983,7 @@ public: L = (Index >> 0) & 1; M = 0; } else { - LOGMAN_THROW_A_FMT(std::is_same_v, "Can't encode DRegister with i64Bit"); + LOGMAN_THROW_A_FMT((std::is_same_v), "Can't encode DRegister with i64Bit"); // Index encoded in H H = Index; L = 0; @@ -4014,7 +4014,7 @@ public: L = (Index >> 0) & 1; M = 0; } else { - LOGMAN_THROW_A_FMT(std::is_same_v, "Can't encode DRegister with i64Bit"); + LOGMAN_THROW_A_FMT((std::is_same_v), "Can't encode DRegister with i64Bit"); // Index encoded in H H = Index; L = 0; diff --git a/CodeEmitter/CodeEmitter/LoadstoreOps.inl b/CodeEmitter/CodeEmitter/LoadstoreOps.inl index 66e1c5315..2f4fb05a7 100644 --- a/CodeEmitter/CodeEmitter/LoadstoreOps.inl +++ b/CodeEmitter/CodeEmitter/LoadstoreOps.inl @@ -1648,8 +1648,8 @@ public: template void ASIMDLoadStoreSinglePost(uint32_t Op, uint32_t Q, uint32_t L, uint32_t R, uint32_t opcode, uint32_t S, uint32_t size, ARMEmitter::Register rm, ARMEmitter::Register rn, T rt) { - LOGMAN_THROW_A_FMT(std::is_same_v || std::is_same_v, "Only supports 128-bit and " - "64-bit vector registers."); + LOGMAN_THROW_A_FMT((std::is_same_v || std::is_same_v), "Only supports 128-bit and " + "64-bit vector registers."); uint32_t Instr = Op; Instr |= Q << 30; 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*, ...) {}