Correct formatting around throw_assertion_failure().
This commit is contained in:
parent
2f7a6d87f6
commit
0b8276f835
@ -24,12 +24,10 @@ void assertion_failure::avoid_weak_vtable() {}
|
|||||||
|
|
||||||
// We use a separate function (rather than throw directly from FMT_ASSERT) to
|
// 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.
|
// 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);
|
throw assertion_failure(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#define FMT_ASSERT(condition, message) \
|
#define FMT_ASSERT(condition, message) \
|
||||||
if (!(condition)) throw_assertion_failure(message);
|
if (!(condition)) throw_assertion_failure(message);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user