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: publicise generated enum maps to enable reuse #29

Merged
merged 1 commit into from Oct 29, 2022

Conversation

Skycoder42
Copy link
Contributor

@Skycoder42 Skycoder42 commented Oct 28, 2022

Describe the change
Replace all occurances of _$XXXEnumMap with $XXXEnumMap.

Current behavior
Enum maps are library private, making it impossible to reuse enums across multiple files.

New behavior
Enums files are now library public, allowing to spread them into multiple files and reuse them for multiple elements.

Additional context
Fixes #28

I did update and run all tests and regenerated the example .g files to ensure the changes work

@tnc1997 tnc1997 self-assigned this Oct 29, 2022
@tnc1997 tnc1997 changed the title refactor enum map generation to not be library private anymore (fixes #28) fix: publicise generated enum maps to enable reuse Oct 29, 2022
Copy link
Owner

@tnc1997 tnc1997 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @Skycoder42, thank you very much for your contribution, looks good to me!

@tnc1997 tnc1997 merged commit ab66a66 into tnc1997:main Oct 29, 2022
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.

Enum-Serializtion does not work anymore if split between multiple files
2 participants