mozilla / cbindgen

A project for generating C bindings from Rust code
Mozilla Public License 2.0
2.27k stars 294 forks source link

Va list fn pointer typedef edge case fix #969

Closed gerard-ryan-immersaview closed 1 month ago

gerard-ryan-immersaview commented 1 month ago

I quickly hacked this together while discovering why my interface was being generated incorrectly. If this is completely off track feel free to use it as inspiration and close this PR as I am not sure how much time I'll have to get this over the line.

Related: https://github.com/mozilla/cbindgen/pull/968.

emilio commented 1 month ago

I assume this is superceded by #970 but please reopen and rebase otherwise.

gerard-ryan-immersaview commented 1 month ago

I assume this is superceded by #970 but please reopen and rebase otherwise.

This may still be relevant or it looks like https://github.com/mozilla/cbindgen/pull/971 achieves the same so up to you on which implementation you prefer. I rebased this PR just in case, but it doesn't look like I can reopen it.