Fix function signature in test/native_test.rs

This commit is contained in:
bʰedoh₂ swé 2024-06-18 23:19:53 +05:00
parent e174f3a885
commit 7223b995a3

View File

@ -4,10 +4,9 @@
// rustc --crate-type cdylib native_test.rs -o native_test.dll
#[no_mangle]
unsafe extern "C" fn labashka(pop: extern fn() -> u16, push: extern fn(u16) -> i32, len: extern fn () -> usize, max: usize) -> u32 {
unsafe extern "C" fn labashka(pop: extern fn() -> u16, push: extern fn(u16) -> i32, len: extern fn () -> usize, max: usize) {
println!("At {}, there's {}.", len(), pop());
push(12);
println!("Maximum size is {}.", max);
return 0;
}