mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
better abort() implementation for windows
in debug mode, it spawns the debugger
This commit is contained in:
parent
1f28d641c0
commit
717e791db2
@ -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"),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user