The Meson Build System http://mesonbuild.com/

10 lines
153 B

#[repr(C)]
pub struct Adder {
pub number: i32
}
#[no_mangle]
pub extern fn adder_add(a: &Adder, number: i32) -> i32 {
return a.number + number;
}