diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-09-15 00:43:48 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-09-20 19:05:00 -0700 |
| commit | 694fab484805088030fa36efe3e6b6e7ee385852 (patch) | |
| tree | 451290910b16372dfdad4336efbc0124248582d7 /lib/c.zig | |
| parent | 8f2e82dbf63aedc64af5c701c4798e9fbd51de72 (diff) | |
| download | zig-694fab484805088030fa36efe3e6b6e7ee385852.tar.gz zig-694fab484805088030fa36efe3e6b6e7ee385852.zip | |
std: add return address parameter to panic fn
Diffstat (limited to 'lib/c.zig')
| -rw-r--r-- | lib/c.zig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ comptime { // Avoid dragging in the runtime safety mechanisms into this .o file, // unless we're trying to test this file. -pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace) noreturn { +pub fn panic(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, _: ?usize) noreturn { @setCold(true); _ = error_return_trace; if (builtin.is_test) { |
