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

Name

Description

loc

The source location of the failed assertion.

assertion

The failed assertion text.

Created with MrDocs