aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/io.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io.rs b/src/io.rs
index 988db09..417fc1d 100644
--- a/src/io.rs
+++ b/src/io.rs
@@ -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;