mozilla / cbindgen

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

conditional fields of constexpr literal structs #989

Open youknowone opened 3 months ago

youknowone commented 3 months ago

Partially fix #955 about constexpr

988 is included in this PR

Because constexpr and defines require very different approach about this problem, I created another PR for constexpr fix while keeping the other one for define fix.

emilio commented 3 weeks ago

Sorry for the lag getting to this btw :(

youknowone commented 3 weeks ago

@emilio Thank you for the review! I updated the both PRs

emilio commented 3 weeks ago

Could you rebase this please? Thanks!

youknowone commented 3 weeks ago

rebased

youknowone commented 3 weeks ago

@emilio Could you check it again?

youknowone commented 2 weeks ago

I updated my local patch to this branch. It worked well for the project.