diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-02 19:51:41 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-02 19:51:41 -0500 |
commit | f7eede23de6f78b2b33b477b2b4c5451141825d5 (patch) | |
tree | d698a92272b8e4a8428b82d9a21f3e98ed267a6d /include/fud_assert.hpp | |
parent | 32c722d50943bbdeba65a77d5e94f8692cf75f3c (diff) |
Add setup for coverage and cppcheck.
Diffstat (limited to 'include/fud_assert.hpp')
-rw-r--r-- | include/fud_assert.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<bool>(expr) ? static_cast<void>(0) : assertFail(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) + ((expr) ? static_cast<void>(0) : assertFail(#expr, __FILE__, __LINE__, __PRETTY_FUNCTION__)) } // namespace fud |