blob: d45e0bcd3b457bee411d7c05d130416faf7a6865 [file] [log] [blame] [edit]
//@ compile-flags: -g -Cstrip=none -Cforce-frame-pointers=yes
#[inline(never)]
pub fn callback<F>(f: F)
where
F: FnOnce((&'static str, u32)),
{
f((file!(), line!()))
}
#[inline(always)]
pub fn callback_inlined<F>(f: F)
where
F: FnOnce((&'static str, u32)),
{
f((file!(), line!()))
}