| author | |
| committer | |
| log | 3bafc4400a40b497b3b3f8113f72c4b80969f13f |
| tree | 7c977ee784cd57eb0fda5921eb05951df1bca0e3 |
| parent | 9cfac4718d2a536fdd096320cc68664ae1ee2c68 |
Why was this passing null? These values are available and useful.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/debug.zig+1-1| ... | ... | @@ -406,7 +406,7 @@ pub fn assert(ok: bool) void { |
| 406 | 406 | pub fn panic(comptime format: []const u8, args: anytype) noreturn { |
| 407 | 407 | @setCold(true); |
| 408 | 408 | |
| 409 | panicExtra(null, null, format, args); | |
| 409 | panicExtra(@errorReturnTrace(), @returnAddress(), format, args); | |
| 410 | 410 | } |
| 411 | 411 | |
| 412 | 412 | /// `panicExtra` is useful when you want to print out an `@errorReturnTrace` |