| ... | @@ -406,7 +406,7 @@ pub fn assert(ok: bool) void { | ... | @@ -406,7 +406,7 @@ pub fn assert(ok: bool) void { |
| 406 | pub fn panic(comptime format: []const u8, args: anytype) noreturn { | 406 | pub fn panic(comptime format: []const u8, args: anytype) noreturn { |
| 407 | @setCold(true); | 407 | @setCold(true); |
| 408 | | 408 | |
| 409 | panicExtra(null, null, format, args); | 409 | panicExtra(@errorReturnTrace(), @returnAddress(), format, args); |
| 410 | } | 410 | } |
| 411 | | 411 | |
| 412 | /// `panicExtra` is useful when you want to print out an `@errorReturnTrace` | 412 | /// `panicExtra` is useful when you want to print out an `@errorReturnTrace` |