From f7eede23de6f78b2b33b477b2b4c5451141825d5 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 2 Oct 2024 19:51:41 -0500 Subject: Add setup for coverage and cppcheck. --- include/fud_assert.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/fud_assert.hpp') diff --git a/include/fud_assert.hpp b/include/fud_assert.hpp index 5b63703..fd861ea 100644 --- a/include/fud_assert.hpp +++ b/include/fud_assert.hpp @@ -24,7 +24,7 @@ void assertFail(const char* assertion, const char* file, unsigned int line, cons __attribute__((__noreturn__)); #define fudAssert(expr) \ - (static_cast(expr) ? static_cast(0) : assertFail(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) + ((expr) ? static_cast(0) : assertFail(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) } // namespace fud -- cgit v1.2.3