mirror of
https://github.com/italicsjenga/gba.git
synced 2025-01-22 15:46:34 +11:00
only print with debug asserts.
This commit is contained in:
parent
38de4e8f5a
commit
416f8a089c
2 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue