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

Generate constants into their typedef structs wherever possible #550

Merged
merged 3 commits into from
May 16, 2022
Merged

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented May 16, 2022

Closes #340

This should improve perf since the lookup cache can be shared across generator runs.
For example, this moves the `HRESULT PInvoke.S_OK` static field to the `HRESULT` struct.

Closes #340
@AArnott AArnott enabled auto-merge May 16, 2022 17:36
@AArnott AArnott merged commit d632375 into main May 16, 2022
@AArnott AArnott deleted the fix340 branch May 16, 2022 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define all typedef "constants" as statics on the struct that declares their value type
1 participant