}
Instance::~Instance() {
- if ((flags_ & Transient) == 0)
+ if ((flags_ & Permanent) == 0)
[GetValue() release];
}
}
};
-JSObjectRef CYMakeInstance(JSContextRef context, id object, bool transient) {
+JSObjectRef CYMakeInstance(JSContextRef context, id object, bool permanent) {
Instance::Flags flags;
- if (transient)
- flags = Instance::Transient;
+ if (permanent)
+ flags = Instance::Permanent;
else {
flags = Instance::None;
object = [object retain];
CYPool &pool(CYGetGlobalPool());
- Object_type = new(pool) Type_privateData("@");
- Selector_type = new(pool) Type_privateData(":");
+ Object_type = new(pool) Type_privateData(sig::object_P);
+ Selector_type = new(pool) Type_privateData(sig::selector_P);
NSArray_ = objc_getClass("NSArray");
NSBlock_ = objc_getClass("NSBlock");