2015-08-03 18:06:01 +02:00
|
|
|
#[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)*) => ();
|
|
|
|
|
}
|
2015-08-04 17:13:24 +02:00
|
|
|
|
|
|
|
|
#[cfg(feature = "output")]
|
|
|
|
|
macro_rules! output {
|
|
|
|
|
($fmt:expr) => (println!($fmt));
|
|
|
|
|
($fmt:expr, $($arg:tt)*) => (println!($fmt, $($arg)*));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#[cfg(not(feature = "output"))]
|
|
|
|
|
macro_rules! output {
|
|
|
|
|
($fmt:expr) => ();
|
|
|
|
|
($fmt:expr, $($arg:tt)*) => ();
|
|
|
|
|
}
|