Dushistov / flapigen-rs

Tool for connecting programs or libraries written in Rust with other languages
BSD 3-Clause "New" or "Revised" License
775 stars 59 forks source link

C header files must define `typedef xxxOpaque`, only when the class ha… #432

Closed stephan57160 closed 2 years ago

stephan57160 commented 2 years ago

…s a self_type.

Without any self_type, the typedef xxxOpaque is useless. Fixed cenum test case, which has no self_type. Added a C test case, testing both cases (with and without self_type).

fixes #431

Dushistov commented 2 years ago

Thanks for PR.