#![allow(unused_macros)]
macro_rules! debug {
($s:literal $(, $x:expr_2021)* $(,)?) => {{
#[cfg(feature = "defmt")]
::defmt::debug!($s $(, $x)*);
#[cfg(feature = "log")]
::log::debug!($s $(, $x)*);
#[cfg(not(any(feature = "defmt", feature = "log")))]
let _ = ($( & $x ),*);
}};
}
macro_rules! info {
($s:literal $(, $x:expr_2021)* $(,)?) => {{
#[cfg(feature = "defmt")]
::defmt::info!($s $(, $x)*);
#[cfg(feature = "log")]
::log::info!($s $(, $x)*);
#[cfg(not(any(feature = "defmt", feature = "log")))]
let _ = ($( & $x ),*);
}};
}
macro_rules! warn {
($s:literal $(, $x:expr_2021)* $(,)?) => {{
#[cfg(feature = "defmt")]
::defmt::warn!($s $(, $x)*);
#[cfg(feature = "log")]
::log::warn!($s $(, $x)*);
#[cfg(not(any(feature = "defmt", feature = "log")))]
let _ = ($( & $x ),*);
}};
}
macro_rules! error {
($s:literal $(, $x:expr_2021)* $(,)?) => {{
#[cfg(feature = "defmt")]
::defmt::error!($s $(, $x)*);
#[cfg(feature = "log")]
::log::error!($s $(, $x)*);
#[cfg(not(any(feature = "defmt", feature = "log")))]
let _ = ($( & $x ),*);
}};
}