Skip to content

Commit 7542c1b

Browse files
committed
keep custom panic handler
1 parent dab6c19 commit 7542c1b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/sdl2/src/sdl-zig-demo.zig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ pub const std_options: std.Options = if (builtin.abi.isAndroid())
1414
else
1515
.{};
1616

17-
// custom panic handler for Android
18-
// pub const panic = if (builtin.abi.isAndroid())
19-
// android.panic
20-
// else
21-
// std.debug.FullPanic(std.debug.defaultPanic);
17+
/// custom panic handler for Android
18+
pub const panic = if (builtin.abi.isAndroid())
19+
android.panic
20+
else
21+
std.debug.FullPanic(std.debug.defaultPanic);
2222

2323
comptime {
2424
if (builtin.abi.isAndroid()) {

0 commit comments

Comments
 (0)