2015-08-04 00:06:01 +08: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 23:13:24 +08: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)*) => ();
|
|
|
|
}
|