cpp_demangle/
logging.rs

1#[cfg(feature = "logging")]
2macro_rules! log {
3    ( $fmt:expr ) => {
4        println!($fmt);
5    };
6    ( $fmt:expr, $($x:tt)* ) => {
7        println!($fmt, $($x)*);
8    }
9}
10
11#[cfg(not(feature = "logging"))]
12macro_rules! log {
13    ( $fmt:expr ) => {};
14    ( $fmt:expr, $($x:tt)* ) => {
15        if false { let _ = format!($fmt, $($x)*); }
16    };
17}