cbindgen/tests/rust/mangle.rs
2021-08-24 11:44:51 +02:00

20 lines
221 B
Rust

#[repr(C)]
pub struct Foo<T> {
a: T,
}
pub type Boo = Foo<u8>;
/// cbindgen:prefix-with-name=true
#[repr(C)]
pub enum Bar {
Some,
Thing,
}
#[no_mangle]
pub extern "C" fn root(
x: Boo,
y: Bar,
) { }