-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
how can I setenum defaults like this
JS_ENUM(Color, Red = 0x01, Green = 0x02, Blue = 0x03, Yellow4 = 0x04, Purple = 0x05)
struct ColorData {
Color color;
JS_OBJ(color);
};
JS_ENUM_DECLARE_STRING_PARSER(Color)
Compilation can pass, but running or have assert in source code 4438 lines.
I looked at the code and probably understood that this is looking for the name of the enumeration member, but there is no related '=' processing。
Does this library support enumerations with initial values?
Metadata
Metadata
Assignees
Labels
No labels