Function print [src]
Print to stderr, silently returning on failure. Intended for use in "printf
debugging". Use std.log functions for proper logging.
Uses a 64-byte buffer for formatted printing which is flushed before this
function returns.
Prototype
pub fn print(comptime fmt: []const u8, args: anytype) void
Parameters
fmt: []const u8
Source
pub fn print(comptime fmt: []const u8, args: anytype) void {
var buffer: [64]u8 = undefined;
const bw = lockStderrWriter(&buffer);
defer unlockStderrWriter();
nosuspend bw.print(fmt, args) catch return;
}