mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-28 03:17:08 +03:00
0bf44c3093
The final offset was clobbering the first error name, which is revealed by an out of bounds when the global error set is empty. Closes #22362
5 lines
129 B
Zig
5 lines
129 B
Zig
fn errorName(err: anyerror) [:0]const u8 {
|
|
return @errorName(err);
|
|
}
|
|
export const error_name: *const anyopaque = &errorName;
|