File: auxiliary.rs

package info (click to toggle)
rust-backtrace 0.3.75-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 612 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 238 bytes parent folder | download | duplicates (47)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[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!()))
}