-
The following nearly does what I want it to do:
Output after preprocessing:
But I cannot figure out how to get the things inside |
Beta Was this translation helpful? Give feedback.
Answered by
Hirrolot
Dec 13, 2023
Replies: 2 comments
-
Hi! Perhaps the easiest solution would be: // Same...
#define ENUMERATE(c) c,
#define ENUM_PRINTABLE(name, ...) \
typedef enum { \
ML99_EVAL(ML99_variadicsForEach( \
ML99_compose(ML99_reify(v(ENUMERATE)), ML99_appl(v(ENUM_CONSTANT), v(name))), \
v(__VA_ARGS__))) \
} name##_t; \
\
/* Same... */
// Same... The function |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pdietl
-
Oh, thank you! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Perhaps the easiest solution would be:
The function
main
printsThe color is kColor_Red
on my end.