12 lines
260 B
Rust
12 lines
260 B
Rust
|
#[cfg(feature = "debug")]
|
||
|
macro_rules! debug {
|
||
|
($fmt:expr) => (println!($fmt));
|
||
|
($fmt:expr, $($arg:tt)*) => (println!($fmt, $($arg)*));
|
||
|
}
|
||
|
|
||
|
#[cfg(not(feature = "debug"))]
|
||
|
macro_rules! debug {
|
||
|
($fmt:expr) => ();
|
||
|
($fmt:expr, $($arg:tt)*) => ();
|
||
|
}
|