MCPcopy Create free account
hub / github.com/fmtlib/fmt / throw_assertion_failure

Function throw_assertion_failure

test/test-assert.h:31–33  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
31inline 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) \

Callers

nothing calls this directly

Calls 1

assertion_failureClass · 0.85

Tested by

no test coverage detected