diff --git a/test/test-assert.h b/test/test-assert.h index 42844a05..3406e1ba 100644 --- a/test/test-assert.h +++ b/test/test-assert.h @@ -24,12 +24,10 @@ void assertion_failure::avoid_weak_vtable() {} // We use a separate function (rather than throw directly from FMT_ASSERT) to // avoid GCC's -Wterminate warning when FMT_ASSERT is used in a destructor. -inline void throw_assertion_failure (const char *message) -{ +inline void throw_assertion_failure(const char* message) { throw assertion_failure(message); } - #define FMT_ASSERT(condition, message) \ if (!(condition)) throw_assertion_failure(message);