fail
void fail(escaped string message, escaped string sourcefile = caller(sourcefile), uint sourceline = caller(sourceline), thrown Assertion* assertion)Throws an Assertion immediately.
Example
if (value == default)
fail("value was not created");Symbol
camp_fail
Parameters
escaped string
message
Human-readable failure message.
escaped string
sourcefile = caller(sourcefile)
Source file reported for the failure. By default, this is supplied by the caller.
uint
sourceline = caller(sourceline)
One-based source line reported for the failure. By default, this is supplied by the caller.
thrown Assertion*
assertion
Thrown assertion channel.
Generated with campc v0.4.0-preview.1+d50446ef951a6ed675f7086cf093dbc993f0041b.