Skip to content

Use macro magic to remove second copy of type names#60

Open
marler8997 wants to merge 1 commit into
kokke:masterfrom
marler8997:macroMagic
Open

Use macro magic to remove second copy of type names#60
marler8997 wants to merge 1 commit into
kokke:masterfrom
marler8997:macroMagic

Conversation

@marler8997

Copy link
Copy Markdown

Instead of keeping 2 copies of the list of type names, I put them in once place inside a macro. This macro is then used to expand the type names as both enum members and then as strings. This allows the list of types to be defined in one location instead of two.

@xavieryin

Copy link
Copy Markdown

magic!

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.

2 participants