mirror of
https://github.com/italicsjenga/gba.git
synced 2024-12-23 10:51:30 +11:00
only print with debug asserts.
This commit is contained in:
parent
38de4e8f5a
commit
416f8a089c
|
@ -5,8 +5,9 @@ use gba::prelude::*;
|
|||
|
||||
#[panic_handler]
|
||||
fn panic_handler(info: &core::panic::PanicInfo) -> ! {
|
||||
use core::fmt::Write;
|
||||
#[cfg(debug_assertions)]
|
||||
if let Ok(mut logger) = MgbaBufferedLogger::try_new(MgbaMessageLevel::Fatal) {
|
||||
use core::fmt::Write;
|
||||
writeln!(logger, "{info}").ok();
|
||||
}
|
||||
loop {}
|
||||
|
|
|
@ -6,6 +6,7 @@ use gba::prelude::*;
|
|||
|
||||
#[panic_handler]
|
||||
fn panic_handler(info: &core::panic::PanicInfo) -> ! {
|
||||
#[cfg(debug_assertions)]
|
||||
if let Ok(mut logger) = MgbaBufferedLogger::try_new(MgbaMessageLevel::Fatal) {
|
||||
writeln!(logger, "{info}").ok();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue