diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/io.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2,7 +2,6 @@ use crate::machine::cgascr::CGAScreen; use core::fmt; use lazy_static::lazy_static; use spin::Mutex; - // TODO I want my own locking primitive for practice, instead of stock spin lock lazy_static! { // TODO perhaps remove the 'a lifetime from the struc defs @@ -13,12 +12,14 @@ lazy_static! { macro_rules! print { ($($arg:tt)*) => ($crate::io::_print(format_args!($($arg)*))); } +pub(crate) use print; #[macro_export] macro_rules! println { () => ($crate::print!("\n")); ($($arg:tt)*) => (print!("{}\n", format_args!($($arg)*))); } +pub(crate) use println; pub fn _print(args: fmt::Arguments) { use core::fmt::Write; |
