authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-10-20 18:34:40-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-10-20 18:34:40-07:00
log0f00766661e533ac5caa88817648f2ada0ff62c5
treecf8bc5f6f2626e3385ac7815e3e3b5513731699a
parent5b9c8d1d6fed333486d15a5ad7ba2699c6bdb01f

Revert "add std.debug.todo"

This reverts commit 80ac022c4667e1995ccdf70fff90e5af26b6eb97. I changed my mind on this one, sorry. I don't think this belongs in the standard library.

1 files changed, 0 insertions(+), 9 deletions(-)

lib/std/debug.zig-9
...@@ -93,15 +93,6 @@ pub fn print(comptime fmt: []const u8, args: anytype) void {...@@ -93,15 +93,6 @@ pub fn print(comptime fmt: []const u8, args: anytype) void {
93 nosuspend stderr.print(fmt, args) catch return;93 nosuspend stderr.print(fmt, args) catch return;
94}94}
9595
96/// Indicates code that is unfinshed. It will throw a compiler error by default in Release mode.
97/// This behaviour can be controlled with `root.allow_todo_in_release`.
98pub fn todo(comptime desc: []const u8) noreturn {
99 if (builtin.mode != .Debug and !(@hasDecl(root, "allow_todo_in_release") and root.allow_todo_in_release)) {
100 @compileError("TODO: " ++ desc);
101 }
102 @panic("TODO: " ++ desc);
103}
104
105pub fn getStderrMutex() *std.Thread.Mutex {96pub fn getStderrMutex() *std.Thread.Mutex {
106 return &stderr_mutex;97 return &stderr_mutex;
107}98}