1 2 3 4 5 6 7 8 9 10 11 12
#[cfg(feature = "debug")] macro_rules! debug { ($($arg:tt)*) => { eprint!("[{:>w$}] \t", module_path!(), w = 28); eprintln!($($arg)*) } } #[cfg(not(feature = "debug"))] macro_rules! debug { ($($arg:tt)*) => {}; }