mirror of
https://github.com/ziglang/zig.git
synced 2026-02-14 13:30:45 +00:00
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.
This commit is contained in:
parent
5b9c8d1d6f
commit
0f00766661
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user