1 | #![allow(unused_macros)] |
---|---|
2 | |
3 | macro_rules! log { |
4 | ($($tt:tt)*) => { |
5 | #[cfg(feature = "logging")] |
6 | { |
7 | $($tt)* |
8 | } |
9 | } |
10 | } |
11 | |
12 | macro_rules! debug { |
13 | ($($tt:tt)*) => { log!(log::debug!($($tt)*)) } |
14 | } |
15 | |
16 | macro_rules! trace { |
17 | ($($tt:tt)*) => { log!(log::trace!($($tt)*)) } |
18 | } |
19 |