diff --git a/src/macros.rs b/src/macros.rs index cf7161b6..6e958a54 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -772,3 +772,22 @@ macro_rules! jay_allow_realtime_config_so { "JAY_ALLOW_REALTIME_CONFIG_SO" }; } + +#[allow(clippy::allow_attributes, unused_macros)] +macro_rules! dbg { + ($val:expr) => { + match $val { + tmp => { + log::warn!( + "[{}:{}:{}] {} = {:#?}", + file!(), + line!(), + column!(), + stringify!($val), + &tmp + ); + tmp + } + } + }; +}