X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/4dd55d2fafdf8e8c93d16023f4d09de533113557..5da4d29c4227ae2392f7902c0a83afd8437c7308:/JavaScript.hpp diff --git a/JavaScript.hpp b/JavaScript.hpp index 4ce43b6..3fb2e6c 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -67,6 +67,7 @@ double CYCastDouble(JSContextRef context, JSValueRef value); CYUTF8String CYPoolUTF8String(CYPool &pool, JSContextRef context, JSStringRef value); const char *CYPoolCString(CYPool &pool, JSContextRef context, JSStringRef value); +bool CYHasProperty(JSContextRef context, JSObjectRef object, JSStringRef name); JSValueRef CYGetProperty(JSContextRef context, JSObjectRef object, size_t index); JSValueRef CYGetProperty(JSContextRef context, JSObjectRef object, JSStringRef name); @@ -143,6 +144,9 @@ JSStringRef CYCopyJSString(JSStringRef value); JSStringRef CYCopyJSString(CYUTF8String value); JSStringRef CYCopyJSString(JSContextRef context, JSValueRef value); +void CYGarbageCollect(JSContextRef context); +void CYDestroyContext(); + class CYJSString { private: JSStringRef string_;