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