aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-10-20 18:34:40 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-10-20 18:34:40 -0700
commit0f00766661e533ac5caa88817648f2ada0ff62c5 (patch)
treecf8bc5f6f2626e3385ac7815e3e3b5513731699a /lib/std/debug.zig
parent5b9c8d1d6fed333486d15a5ad7ba2699c6bdb01f (diff)
downloadzig-0f00766661e533ac5caa88817648f2ada0ff62c5.tar.gz
zig-0f00766661e533ac5caa88817648f2ada0ff62c5.zip
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.
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index d79379e85b..93216f0058 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -93,15 +93,6 @@ pub fn print(comptime fmt: []const u8, args: anytype) void {
nosuspend stderr.print(fmt, args) catch return;
}
-/// Indicates code that is unfinshed. It will throw a compiler error by default in Release mode.
-/// This behaviour can be controlled with `root.allow_todo_in_release`.
-pub fn todo(comptime desc: []const u8) noreturn {
- if (builtin.mode != .Debug and !(@hasDecl(root, "allow_todo_in_release") and root.allow_todo_in_release)) {
- @compileError("TODO: " ++ desc);
- }
- @panic("TODO: " ++ desc);
-}
-
pub fn getStderrMutex() *std.Thread.Mutex {
return &stderr_mutex;
}