Skip to content

Commit 19a89db

Browse files
MaxVerevkinoverdrivenpotato
authored andcommitted
dprintln: allow empty arguments
1 parent afa5439 commit 19a89db

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

psp/src/debug.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ use core::fmt;
88
/// Like `println!`, but prints to the PSP screen.
99
#[macro_export]
1010
macro_rules! dprintln {
11+
() => {
12+
$crate::dprint("\n")
13+
};
1114
($($arg:tt)*) => {{
12-
$crate::debug::print_args(core::format_args!($($arg)*));
13-
$crate::debug::print_args(core::format_args!("\n"));
14-
}}
15+
$crate::dprint!($($arg)*);
16+
$crate::dprint!("\n");
17+
}};
1518
}
1619

1720
/// Like `print!`, but prints to the PSP screen.

0 commit comments

Comments
 (0)