#[cfg(feature = "defmt")]
#[macro_export]
macro_rules! info {
($($arg:tt)*) => {
defmt::info!($($arg)*)
};
}
#[cfg(feature = "defmt")]
#[macro_export]
macro_rules! error {
($($arg:tt)*) => {
defmt::error!($($arg)*)
};
}
#[cfg(all(feature = "std", not(feature = "defmt")))]
#[macro_export]
macro_rules! info {
($($arg:tt)*) => {
println!($($arg)*)
};
}
#[cfg(all(feature = "std", not(feature = "defmt")))]
#[macro_export]
macro_rules! error {
($($arg:tt)*) => {
eprintln!($($arg)*)
};
}