#![allow(unused_macros)]
#[cfg(feature = "error-strings")]
macro_rules! trace {
($($arg:tt)*) => { ::tracing::trace!($($arg)*) };
}
#[cfg(feature = "error-strings")]
macro_rules! debug {
($($arg:tt)*) => { ::tracing::debug!($($arg)*) };
}
#[cfg(feature = "error-strings")]
macro_rules! info {
($($arg:tt)*) => { ::tracing::info!($($arg)*) };
}
#[cfg(feature = "error-strings")]
macro_rules! warn {
($($arg:tt)*) => { ::tracing::warn!($($arg)*) };
}
#[cfg(feature = "error-strings")]
macro_rules! error {
($($arg:tt)*) => { ::tracing::error!($($arg)*) };
}
#[cfg(not(feature = "error-strings"))]
macro_rules! drop_record {
($fmt:literal $(,)?) => {{}};
($fmt:literal, $($arg:expr),+ $(,)?) => {{ $( let _ = &$arg; )+ }};
}
#[cfg(not(feature = "error-strings"))]
macro_rules! trace {
($($arg:tt)*) => { drop_record!($($arg)*) };
}
#[cfg(not(feature = "error-strings"))]
macro_rules! debug {
($($arg:tt)*) => { drop_record!($($arg)*) };
}
#[cfg(not(feature = "error-strings"))]
macro_rules! info {
($($arg:tt)*) => { drop_record!($($arg)*) };
}
#[cfg(not(feature = "error-strings"))]
macro_rules! warn {
($($arg:tt)*) => { drop_record!($($arg)*) };
}
#[cfg(not(feature = "error-strings"))]
macro_rules! error {
($($arg:tt)*) => { drop_record!($($arg)*) };
}
#[cfg(feature = "error-strings")]
macro_rules! err_text {
($($arg:tt)*) => { format!($($arg)*) };
}
#[cfg(not(feature = "error-strings"))]
macro_rules! err_text {
($fmt:literal $(,)?) => {{ ::std::string::String::new() }};
($fmt:literal, $($arg:expr),+ $(,)?) => {{
$( let _ = &$arg; )+
::std::string::String::new()
}};
}