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.
| 29 | // We use a separate function (rather than throw directly from FMT_ASSERT) to |
| 30 | // avoid GCC's -Wterminate warning when FMT_ASSERT is used in a destructor. |
| 31 | inline void throw_assertion_failure(const char* message) { |
| 32 | throw assertion_failure(message); |
| 33 | } |
| 34 | |
| 35 | // Expects an assertion failure. |
| 36 | #define EXPECT_ASSERT(stmt, message) \ |
nothing calls this directly
no test coverage detected