macro_rules! shim_sig {
(extern $abi:literal fn($($args:tt)*) -> $($ret:tt)*) => { ... };
}Expand description
Construct a ShimSig with convenient syntax:
ⓘ
shim_sig!(extern "C" fn (*const T, i32) -> usize)The following types are supported:
- primitive integer types
()- (thin) raw pointers, written
*const _and*mut _since the pointee type is irrelevant $crate::$mod::...::$tyfor a type from the given crate (most commonly that islibc)winapi::$tyfor a type fromstd::sys::pal::windows::c