DoxigAlpha

call

Prints the message to stderr without a newline and then traps.

Explicit calls to @panic lower to calling this function.

Function parameters

Parameters

#
msg:[]const u8
ra:?usize

Prints the message to stderr without a newline and then traps.

Functions

#
call
Prints the message to stderr without a newline and then traps.

Source

Implementation

#
pub fn call(msg: []const u8, ra: ?usize) noreturn {
    @branchHint(.cold);
    _ = ra;
    std.debug.lockStdErr();
    const stderr: std.fs.File = .stderr();
    stderr.writeAll(msg) catch {};
    @trap();
}