Macro convert_to_fn
macro_rules! convert_to_fn {
($abi:literal, $pointerable:expr, $($tokens:tt)*) => { ... };
($abi:literal, $pointerable:expr) => { ... };
}
Expand description
Transforms pointerable into a function pointer.
ยงArguments
abi
- The ABI of the function, e.g."sysv64"
.pointerable
- The pointerable to transform into a function pointer. This is any object that implementscrate::traits::Pointerable
trait.tokens
- optional function signature, e.g.fn(i32, bool) -> u8
.