macro_rules! make_extern {
( $abi:path, $ty:ty ) => { ... };
}Expand description
Convert a function-pointer type to an extern function that uses
the specified ABI. Arguments, return type, and safety are preserved.
ยงExample
type F = fn(i32) -> i32;
type C = make_extern!(Abi::C, F);
// `C` is `extern "C" fn(i32) -> i32`Equivalent to:
with_abi!(Abi::C, F)