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

fix enum with const value declaration #97

Merged
merged 5 commits into from
Feb 17, 2023
Merged

fix enum with const value declaration #97

merged 5 commits into from
Feb 17, 2023

Conversation

felipensp
Copy link
Member

@felipensp felipensp commented Feb 17, 2023

Fix #50

enum { J = 1 };

was generating V

const ( // empty enum
	j = 0
)

@ArtemkaKun
Copy link
Contributor

Hi, cool stuff. CI errors seem to be unrelated to changes. Can you also add a test (Maybe just copy-paste C and the expected code from the issue)?

@felipensp
Copy link
Member Author

Hi, cool stuff. CI errors seem to be unrelated to changes. Can you also add a test (Maybe just copy-paste C and the expected code from the issue)?

Sure. I've added.

@ArtemkaKun ArtemkaKun merged commit a18cfea into master Feb 17, 2023
@felipensp felipensp deleted the fix_enum branch March 1, 2024 14:07
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.

Wrong anonymous enums values translation
2 participants