mirror of
https://github.com/ziglang/zig.git
synced 2025-01-19 00:11:37 +00:00
std: @import("builtin").StackTrace
-> std.builtin.StackTrace
This commit is contained in:
parent
84fdeb47a3
commit
f41892f736
@ -115,7 +115,7 @@ fn testGodboltApi(zig_exe: []const u8, dir_path: []const u8) anyerror!void {
|
||||
\\ return num * num;
|
||||
\\}
|
||||
\\extern fn zig_panic() noreturn;
|
||||
\\pub fn panic(msg: []const u8, error_return_trace: ?*@import("builtin").StackTrace) noreturn {
|
||||
\\pub fn panic(msg: []const u8, error_return_trace: ?*@import("std").builtin.StackTrace) noreturn {
|
||||
\\ zig_panic();
|
||||
\\}
|
||||
);
|
||||
|
@ -1,4 +1,4 @@
|
||||
const StackTrace = @import("builtin").StackTrace;
|
||||
const StackTrace = @import("std").builtin.StackTrace;
|
||||
pub fn panic(msg: []const u8, stack_trace: ?*StackTrace) noreturn {
|
||||
@breakpoint();
|
||||
while (true) {}
|
||||
|
Loading…
Reference in New Issue
Block a user