Function print [src]

Print to stderr, unbuffered, and silently returning on failure. Intended for use in "printf debugging." Use std.log functions for proper logging.

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 { lockStdErr(); defer unlockStdErr(); const stderr = io.getStdErr().writer(); nosuspend stderr.print(fmt, args) catch return; }