2 ms·
An interface like DEF_ENUM( EnumName, (Name1, value1) (Name2, value2) ...); Is also possible. I'm not the greatest fan of PP metaprogramming
by gpderetta 3y ago
An interface like
DEF_ENUM(
EnumName,
(Name1, value1)
(Name2, value2)
...);
Is also possible. I'm not the greatest fan of PP metaprogramming, but I think this is acceptable.
With additional Magic it might be possible to do separate compilation of the to_string() function.