summaryrefslogtreecommitdiffstats
path: root/library/backtrace/crates/dylib-dep/src/lib.rs
blob: 201807797f008ec40b8e19ae590fc4b8cdcdd2ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(improper_ctypes_definitions)]

type Pos = (&'static str, u32);

macro_rules! pos {
    () => {
        (file!(), line!())
    };
}

#[no_mangle]
pub extern "C" fn foo(outer: Pos, inner: fn(Pos, Pos)) {
    inner(outer, pos!());
}