mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
13 lines
290 B
Zig
13 lines
290 B
Zig
const StackTrace = @import("std").builtin.StackTrace;
|
|
pub fn panic(msg: []const u8, stack_trace: ?*StackTrace, _: ?usize) noreturn {
|
|
_ = msg;
|
|
_ = stack_trace;
|
|
@breakpoint();
|
|
while (true) {}
|
|
}
|
|
|
|
fn bar() anyerror!void {}
|
|
|
|
export fn foo() void {
|
|
bar() catch unreachable;
|
|
}
|