Function call [src]

Prints the message to stderr without a newline and then traps. Explicit calls to @panic lower to calling this function.

Prototype

pub fn call(msg: []const u8, ra: ?usize) noreturn

Parameters

msg: []const u8ra: ?usize

Source

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(); }