Skip to content

Commit

Permalink
[enh] added print! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
chmousset committed Jan 4, 2025
1 parent 2f176c8 commit f50f72a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,15 @@ macro_rules! println {
}
}
}

#[macro_export]
macro_rules! print {
($($arg:tt)*) => {
{
use core::fmt::Write;
use core::write;

write!(&mut $crate::debug::SDIPrint, $($arg)*).unwrap();
}
}
}

0 comments on commit f50f72a

Please sign in to comment.