From: Jay Freeman (saurik) Date: Sun, 1 Nov 2015 22:00:28 +0000 (-0800) Subject: Rename Instance::Transient to Instance::Permament. X-Git-Tag: v0.9.504~32 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/8b8a64c5f9b3e638ee850b3a8a09803328fa7603 Rename Instance::Transient to Instance::Permament. --- diff --git a/ObjectiveC/Internal.hpp b/ObjectiveC/Internal.hpp index 1ac20e2..b731dbb 100644 --- a/ObjectiveC/Internal.hpp +++ b/ObjectiveC/Internal.hpp @@ -45,7 +45,7 @@ struct Instance : { enum Flags { None = 0, - Transient = (1 << 0), + Permanent = (1 << 0), Uninitialized = (1 << 1), }; @@ -79,7 +79,7 @@ struct Super : Class class_; _finline Super(id value, Class _class) : - Instance(value, Instance::Transient), + Instance(value, Instance::Permanent), class_(_class) { } diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index cb95509..24ff4ce 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -413,7 +413,7 @@ JSObjectRef Instance::Make(JSContextRef context, id object, Flags flags) { } Instance::~Instance() { - if ((flags_ & Transient) == 0) + if ((flags_ & Permanent) == 0) [GetValue() release]; } @@ -429,11 +429,11 @@ struct Message_privateData : } }; -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];