| ... | @@ -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 | } |
| 95 | | 95 | |
| 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`. | | |
| 98 | pub 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 | | | |
| 105 | pub fn getStderrMutex() *std.Thread.Mutex { | 96 | pub fn getStderrMutex() *std.Thread.Mutex { |
| 106 | return &stderr_mutex; | 97 | return &stderr_mutex; |
| 107 | } | 98 | } |