gnzlbg / ctest

Automatic testing of FFI bindings for Rust
https://docs.rs/ctest
Apache License 2.0
122 stars 29 forks source link

Add a way to specify that a function argument is an array in C #64

Closed gnzlbg closed 5 years ago

gnzlbg commented 5 years ago

Syntex only sees Arr below as a Path, but we need to treat it as an array:

type Arr = [i32; 4];
extern { 
    fn foo(x: Arr);
}