X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/9a39f7051ad983d4377917e66222727dcbe6c099..c2faf0d3294cf48cf5032885f15befe532901d47:/JavaScript.hpp diff --git a/JavaScript.hpp b/JavaScript.hpp index 70887c4..c8a8fd8 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -39,6 +39,7 @@ extern JSStringRef Array_s; extern JSStringRef cy_s; +extern JSStringRef cyi_s; extern JSStringRef length_s; extern JSStringRef message_s; extern JSStringRef name_s; @@ -142,6 +143,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_;