Attribute Macro interoptopus_proc::ffi_function [−][src]
#[ffi_function]
Expand description
Enable an extern "C"
function to appear in generated bindings.
Example
use interoptopus::ffi_function; #[ffi_function] #[no_mangle] pub extern "C" fn my_function(x: u32) -> u32 { x }