Correct formatting around throw_assertion_failure().

This commit is contained in:
John Steele Scott 2021-03-03 19:43:04 +10:30
parent 2f7a6d87f6
commit 0b8276f835

View File

@ -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);