mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 15:13:08 +00:00
std.debug.panic: pass the args
Why was this passing null? These values are available and useful.
This commit is contained in:
parent
9cfac4718d
commit
3bafc4400a
@ -406,7 +406,7 @@ pub fn assert(ok: bool) void {
|
||||
pub fn panic(comptime format: []const u8, args: anytype) noreturn {
|
||||
@setCold(true);
|
||||
|
||||
panicExtra(null, null, format, args);
|
||||
panicExtra(@errorReturnTrace(), @returnAddress(), format, args);
|
||||
}
|
||||
|
||||
/// `panicExtra` is useful when you want to print out an `@errorReturnTrace`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user