mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 16:12:33 +00:00
9 lines
230 B
Zig
9 lines
230 B
Zig
const StackTrace = @import("builtin").StackTrace;
|
|
pub fn panic(msg: []const u8, stack_trace: ?&StackTrace) noreturn { @breakpoint(); while (true) {} }
|
|
|
|
fn bar() error!void {}
|
|
|
|
export fn foo() void {
|
|
bar() catch unreachable;
|
|
}
|