aboutsummaryrefslogtreecommitdiffstats
path: root/examples/simple/macros.rs
blob: 46d2d078cb41e2279325adf405bafe3df5b21fe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[macro_export]
macro_rules! logln_now {
    ($($arg:tt)*) => {
        unsafe {crate::logger::write_fmt_now(format_args!($($arg)*), true);}
    };
    (_) => {};
}

#[macro_export]
macro_rules! log_now {
    ($($arg:tt)*) => {
        unsafe {crate::logger::write_fmt_now(format_args!($($arg)*), false);}
    };
    (_) => {};
}