Commit 717e791db2

Andrew Kelley <superjoe30@gmail.com>
2017-10-11 02:34:12
better abort() implementation for windows
in debug mode, it spawns the debugger
1 parent 1f28d64
Changed files (1)
std
std/os/index.zig
@@ -109,7 +109,10 @@ pub coldcc fn abort() -> noreturn {
             while (true) {}
         },
         Os.windows => {
-            windows.ExitProcess(1);
+            if (builtin.mode == builtin.Mode.Debug) {
+                @breakpoint();
+            }
+            windows.ExitProcess(3);
         },
         else => @compileError("Unsupported OS"),
     }