mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ pub fn assert(ok: bool) void {
|
||||||
pub fn panic(comptime format: []const u8, args: anytype) noreturn {
|
pub fn panic(comptime format: []const u8, args: anytype) noreturn {
|
||||||
@setCold(true);
|
@setCold(true);
|
||||||
|
|
||||||
panicExtra(null, null, format, args);
|
panicExtra(@errorReturnTrace(), @returnAddress(), format, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `panicExtra` is useful when you want to print out an `@errorReturnTrace`
|
/// `panicExtra` is useful when you want to print out an `@errorReturnTrace`
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue