{
enum Flags {
None = 0,
- Transient = (1 << 0),
+ Permanent = (1 << 0),
Uninitialized = (1 << 1),
};
Class class_;
_finline Super(id value, Class _class) :
- Instance(value, Instance::Transient),
+ Instance(value, Instance::Permanent),
class_(_class)
{
}
}
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];