handle_ffi_binary

Macro handle_ffi_binary 

Source
macro_rules! handle_ffi_binary {
    (
        $name:ident,
        $input1_type:ty,
        $input2_type:ty,
        $ret_type:ty, |
        $arg1:ident,
        $arg2:ident |
        $body:expr_2021
    ) => { ... };
}
Expand description

Creates a FFI-compatible function that takes raw pointers to two arguments, dereferences them, applies a body of logic, and returns a raw pointer to the result.