Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move offset calculations for opaque structs to runtime #287

Merged
merged 7 commits into from
Jun 22, 2024

Conversation

keynmol
Copy link
Contributor

@keynmol keynmol commented Jun 22, 2024

Closes #285
Closes #284
Closes #198
Closes #255

  • Use sizeof/alignmentof for calculations
  • Correctly handle anonymous struct fields
  • Get struct size from clang itself

This should improve the portability of generated bindings between architectures.

- Use sizeof/alignmentof for calculations
- Correctly handle anonymous struct fields
- Get struct size from clang itself

This should improve the portability of generated bindings between
architectures.
@keynmol keynmol marked this pull request as ready for review June 22, 2024 13:42
@keynmol keynmol merged commit a829ca3 into main Jun 22, 2024
7 checks passed
@keynmol keynmol deleted the opaque-struct-size-improvements branch June 22, 2024 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant