enum.hpp icon indicating copy to clipboard operation
enum.hpp copied to clipboard

Custom names for values

Open WimLeflere opened this issue 5 years ago • 1 comments

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".

WimLeflere avatar Nov 26 '19 12:11 WimLeflere

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 avatar Nov 26 '19 21:11 BlackMATov