this repo has no description
13
fork

Configure Feed

Select the types of activity you want to include in your feed.

zig: update apis for zig 0.14.0

+11 -1
+11 -1
src/main.zig
··· 48 48 return Vaxis.init(alloc, opts); 49 49 } 50 50 51 + pub const Panic = struct { 52 + pub const call = panic_handler; 53 + pub const sentinelMismatch = std.debug.FormattedPanic.sentinelMismatch; 54 + pub const unwrapError = std.debug.FormattedPanic.unwrapError; 55 + pub const outOfBounds = std.debug.FormattedPanic.outOfBounds; 56 + pub const startGreaterThanEnd = std.debug.FormattedPanic.startGreaterThanEnd; 57 + pub const inactiveUnionField = std.debug.FormattedPanic.inactiveUnionField; 58 + pub const messages = std.debug.FormattedPanic.messages; 59 + }; 60 + 51 61 /// Resets terminal state on a panic, then calls the default zig panic handler 52 62 pub fn panic_handler(msg: []const u8, error_return_trace: ?*std.builtin.StackTrace, ret_addr: ?usize) noreturn { 53 63 recover(); 54 - std.builtin.default_panic(msg, error_return_trace, ret_addr); 64 + std.debug.defaultPanic(msg, error_return_trace, ret_addr); 55 65 } 56 66 57 67 /// Resets the terminal state using the global tty instance. Use this only to recover during a panic