From 6b36035a1b50704a070c67506c87a04d21898daf Mon Sep 17 00:00:00 2001 From: xbzk Date: Sun, 15 Feb 2026 04:01:13 -0300 Subject: [PATCH] fix annoying ninja if constexpr warning --- src/common/assert.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/assert.h b/src/common/assert.h index f720f90f15..ecdd8360a8 100644 --- a/src/common/assert.h +++ b/src/common/assert.h @@ -25,7 +25,8 @@ void AssertFailSoftImpl(); #define ASSERT_MSG(_a_, ...) \ ([&]() YUZU_NO_INLINE { \ - if (!(_a_)) [[unlikely]] { \ + auto&& _a_eval_ = (_a_); \ + if (!(_a_eval_)) [[unlikely]] { \ LOG_CRITICAL(Debug, __FILE__ ": assert " __VA_ARGS__); \ AssertFailSoftImpl(); \ } \