From 6a93dda3e1c0ff5f400da25a5d14c907fc9a6fdf Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 14 Jun 2017 00:04:34 -0400 Subject: progress toward windows hello world working --- std/debug.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'std/debug.zig') 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) { -- cgit v1.2.3