#define SIMCALL_ENUM(type, ...)\
type
+/* generate the strings name from the enumeration values */
+#define SIMCALL_STRING_TYPE(type, name, answer, res, ...)\
+ [type] = STRINGIFY(type)
+
/* generate strings from the enumeration values */
#define SIMCALL_TYPE(type, name, answer, res, ...)\
[type] = STRINGIFY(MAP(SIMCALL_FORMAT, __VA_ARGS__))
/* generate strings from the enumeration values */
static const char* simcall_names[] = {
-SIMCALL_LIST(SIMCALL_TYPE, SIMCALL_SEP_COMMA)
+SIMCALL_LIST(SIMCALL_STRING_TYPE, SIMCALL_SEP_COMMA)
[SIMCALL_NONE] = "NONE"
};