jSClassAttributesToCEnum function
enum JSClassAttributes to C enum
Implementation
int jSClassAttributesToCEnum(JSClassAttributes type) {
switch (type) {
case JSClassAttributes.kJSClassAttributeNoAutomaticPrototype:
return JSObjectRef
.JSClassAttributes.kJSClassAttributeNoAutomaticPrototype;
default:
return JSObjectRef.JSClassAttributes.kJSClassAttributeNone;
}
}