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

Custom names for values #4

Open
WimLeflere opened this issue Nov 26, 2019 · 1 comment
Open

Custom names for values #4

WimLeflere opened this issue Nov 26, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@WimLeflere
Copy link

It might be interesting to be able to define custom names for values.
Now dark_blue name will be "dark_blue" automatically.
Defining a custom name might be useful, e.g. "dark blue".

@BlackMATov
Copy link
Owner

Yes, it's interesting, I'll think about syntax like this:

ENUM_HPP_CLASS_DECL_EX(topology, int,
    (triangles, "triangles")
    (triangles_fan = 2, "triangles fan")
    (triangles_strip = 4, "triangles strip"))

@BlackMATov BlackMATov added the enhancement New feature or request label Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants