Generation

generate functionThu, 01 Dec 2022

a function that can be exported to C in a static library

#[no_mangle] pub extern "C" fn add(a: i32, b: i32) -> i32 { return a + b }

Questions about programming?Chat with your personal AI assistant