1 2 3 4 5 6 7 8 9 10 11
use interoptopus::{ffi, function}; #[ffi(export = unique)] pub fn sum_slice(values: ffi::Slice<u32>) -> u32 { values.iter().sum() } #[test] fn basic() { test_output!("Interop.cs", [function!(sum_slice)]); }