main: add panic handler
Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
parent
40cd0a72b7
commit
4bc7b5b123
|
@ -392,3 +392,10 @@ fn draw_mara() void {
|
|||
|
||||
w4.blitSub(&sprites.Mara, @intCast(u32, mara_box.base.x), @intCast(u32, mara_box.base.y), 16, 16, 16 * (frame + step), 0, 96, flags);
|
||||
}
|
||||
|
||||
pub fn panic(msg: []const u8, st: ?*std.builtin.StackTrace) noreturn {
|
||||
_ = st;
|
||||
w4.trace("!!! PANIC !!!");
|
||||
w4.trace(msg);
|
||||
while (true) {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue