From 0b8276f835d33a8fe193c2a6190d601758b7e7cb Mon Sep 17 00:00:00 2001 From: John Steele Scott Date: Wed, 3 Mar 2021 19:43:04 +1030 Subject: [PATCH] Correct formatting around throw_assertion_failure(). --- test/test-assert.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);