aboutsummaryrefslogtreecommitdiff
path: root/std/debug.zig
diff options
context:
space:
mode:
Diffstat (limited to 'std/debug.zig')
-rw-r--r--std/debug.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/std/debug.zig b/std/debug.zig
index 44923ae082..d8567aae6e 100644
--- a/std/debug.zig
+++ b/std/debug.zig
@@ -16,7 +16,9 @@ pub fn assert(ok: bool) {
var panicking = false;
/// This is the default panic implementation.
-pub coldcc fn panic(comptime format: []const u8, args: ...) -> noreturn {
+pub fn panic(comptime format: []const u8, args: ...) -> noreturn {
+ // TODO an intrinsic that labels this as unlikely to be reached
+
// TODO
// if (@atomicRmw(AtomicOp.XChg, &panicking, true, AtomicOrder.SeqCst)) { }
if (panicking) {