assertion_fail

Internal helper. The noreturn enables optimizers to discard invalid paths.

Synopsis

Declared in <util/check.h>

[[noreturn]]
void
assertion_fail(
    std::source_location const& loc,
    std::string_view assertion);

Return Value

NOTE

This function does not return.

Parameters

NameDescription
locThe source location of the failed assertion.
assertionThe failed assertion text.