]> git.saurik.com Git - cycript.git/commitdiff
Allow usage of .type on objects of type Message.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 21 Jan 2014 19:13:21 +0000 (11:13 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 21 Jan 2014 19:13:21 +0000 (11:13 -0800)
Execute.cpp
Internal.hpp
ObjectiveC/Library.mm

index ed70a1d824c5dc53c3fee355be39f6d81c707902..8cd0c908698650666fc8d4acaf78b4a44cb5bb57 100644 (file)
@@ -1419,6 +1419,10 @@ static JSStaticValue Functor_staticValues[2] = {
     {NULL, NULL, NULL, 0}
 };
 
+namespace cy {
+    JSStaticValue const * const Functor::StaticValues = Functor_staticValues;
+}
+
 static JSStaticValue Type_staticValues[4] = {
     {"alignment", &Type_getProperty_alignment, NULL, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontEnum | kJSPropertyAttributeDontDelete},
     {"name", &Type_getProperty_name, NULL, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontEnum | kJSPropertyAttributeDontDelete},
index 7c278b4afc1851a1b04f811872bbd212352a2af7..cf357086deaad9f5c2c875f5c02a8244dd9a8cfc 100644 (file)
@@ -190,6 +190,7 @@ struct Functor :
     }
 
     static JSStaticFunction const * const StaticFunctions;
+    static JSStaticValue const * const StaticValues;
 }; }
 
 struct Closure_privateData :
index 6c7bbd252348221fe61119ecb3437cd70f9457a0..7ac3bb08e7380e7b6e3a2d4aeec217ced7f58c96 100644 (file)
@@ -2854,6 +2854,7 @@ void CYObjectiveC_Initialize() { /*XXX*/ JSContextRef context(NULL); CYPoolTry {
     definition = kJSClassDefinitionEmpty;
     definition.className = "Message";
     definition.staticFunctions = cy::Functor::StaticFunctions;
+    definition.staticValues = cy::Functor::StaticValues;
     definition.callAsFunction = &Message_callAsFunction;
     definition.finalize = &CYFinalize;
     Message_ = JSClassCreate(&definition);