fix annoying ninja if constexpr warning

This commit is contained in:
xbzk 2026-02-15 04:01:13 -03:00
parent 56f0701b5a
commit 6b36035a1b

View file

@ -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(); \
} \