enum.hpp
enum.hpp copied to clipboard
Custom names for values
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"
.
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"))