main: add panic handler

Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-07-02 09:50:37 -04:00
parent 40cd0a72b7
commit 4bc7b5b123
1 changed files with 7 additions and 0 deletions

View File

@ -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); 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) {}
}