mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
Deprecate std.debug.warn
This commit is contained in:
parent
0bd067d19a
commit
8e5393a779
@ -52,8 +52,7 @@ pub const LineInfo = struct {
|
||||
|
||||
var stderr_mutex = std.Mutex.init();
|
||||
|
||||
/// Tries to write to stderr, unbuffered, and ignores any error returned.
|
||||
/// Does not append a newline.
|
||||
/// Deprecated. Use `std.log` functions for logging.
|
||||
pub fn warn(comptime fmt: []const u8, args: var) void {
|
||||
const held = stderr_mutex.acquire();
|
||||
defer held.release();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user