Debian Codegraph @

.cargo/vendor/cbindgen/tests/rust/function_ptr.rs

raw
1 pub type MyCallback = Option<unsafe extern "C" fn(a: usize, b: usize)>;
2
3 pub type MyOtherCallback = Option<unsafe extern "C" fn(a: usize, lot: usize, of: usize, args: usize, and_then_some: usize)>;
4
5 #[no_mangle]
6 pub extern "C" fn my_function(a: MyCallback, b: MyOtherCallback) {}