#![allow(unused_macros)]
#![allow(unused_imports)]
macro_rules! trace {
($s:literal $(, $x:expr)* $(,)?) => {
{
#[cfg(feature = "defmt")]
::defmt::trace!($s $(, $x)*);
#[cfg(not(feature="defmt"))]
let _ = ($( & $x ),*);
}
};
}
macro_rules! debug {
($s:literal $(, $x:expr)* $(,)?) => {
{
#[cfg(feature = "defmt")]
::defmt::debug!($s $(, $x)*);
#[cfg(not(feature="defmt"))]
let _ = ($( & $x ),*);
}
};
}
macro_rules! warning {
($s:literal $(, $x:expr)* $(,)?) => {
{
#[cfg(feature = "defmt")]
::defmt::warn!($s $(, $x)*);
#[cfg(not(feature="defmt"))]
let _ = ($( & $x ),*);
}
};
}
pub(crate) use debug;
pub(crate) use trace;
pub(crate) use warning;