-
Notifications
You must be signed in to change notification settings - Fork 4
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
Generating numerical constants instead of enum variants #8
Comments
Hacked this in master...kvark:enum-const |
Having this upstreamed would be great - I'm actually kinda surprised this wasn't implemented already. Most of the code in the hack looks good, but it would need a config flag to switch between the enum and numerical constants version. It might also make sense to make the enum type a wrapper struct to keep type-checking, which in this case would be |
Getting enum stripping to only strip |
How easy would this option be to implement? I need:
instead of
One thing is moving from enum variants to constants. Another is - stripping "VK_" prefix only, leaving the other padding (
SYSTEM_ALLOCATION_SCOPE_
). Finally, I suppose the enum type would then turn intopub type SystemAllocationScope = u32
;The text was updated successfully, but these errors were encountered: