From 4c12b1d0b21382da03427052c39912d9cffb536c Mon Sep 17 00:00:00 2001 From: lizzie Date: Mon, 10 Nov 2025 21:23:33 +0000 Subject: [PATCH] __FILE__ is redundant --- src/common/assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/assert.h b/src/common/assert.h index 87a3a71705..d7617f8b1c 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -25,7 +25,7 @@ void AssertFailSoftImpl(); #define ASSERT(_a_) \ ([&]() YUZU_NO_INLINE { \ if (!(_a_)) [[unlikely]] { \ - LOG_CRITICAL(Debug, __FILE__ ":" #_a_ ": assert"); \ + LOG_CRITICAL(Debug, #_a_ ": assert"); \ AssertFailSoftImpl(); \ } \ }()) @@ -33,7 +33,7 @@ void AssertFailSoftImpl(); #define ASSERT_MSG(_a_, ...) \ ([&]() YUZU_NO_INLINE { \ if (!(_a_)) [[unlikely]] { \ - LOG_CRITICAL(Debug, __FILE__ ":" #_a_ ": assert\n" __VA_ARGS__); \ + LOG_CRITICAL(Debug, #_a_ ": assert\n" __VA_ARGS__); \ AssertFailSoftImpl(); \ } \ }())