Open fh-igd-mueller-roemer opened 7 months ago
Describe the bug When a typedef to char is used, autocxx fails with an unsupported type error.
typedef
char
autocxx
To Reproduce
minimal.h
typedef char Standard_Character; typedef Standard_Character * Standard_CString; Standard_CString foo();
main.rs
use autocxx::prelude::*; include_cpp! { #include "minimal.h" safety!(unsafe_ffi) generate!("foo") } fn main() { println!("Hello, world!"); }
Cargo.toml and build.rs as shown in the tutorial example.
Cargo.toml
build.rs
Expected behavior Code is generated as if char was being used.
Additional context
Thanks, please raise a test PR per these instructions
Describe the bug When a
typedef
tochar
is used,autocxx
fails with an unsupported type error.To Reproduce
minimal.h
main.rs
Cargo.toml
andbuild.rs
as shown in the tutorial example.Expected behavior Code is generated as if
char
was being used.Additional context