1
0
Fork 0
forked from wry/wry

macros: add dbg macro

This commit is contained in:
Julian Orth 2025-07-10 11:00:01 +02:00
parent ccb9d3eef5
commit 3b31a7d433

View file

@ -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
}
}
};
}