]> git.saurik.com Git - cycript.git/blobdiff - cycript.hpp
Drastic modifications to exception handling that required temporarily bringing back...
[cycript.git] / cycript.hpp
index 2edea84b4e6d44c45c661c2643f3b9066bc74b97..b73d5c640abb303d9f8277bd9a111dd4e2658fe2 100644 (file)
@@ -8,12 +8,10 @@
 #include <JavaScriptCore/JavaScript.h>
 #include <JavaScriptCore/JSStringRefCF.h>
 
-JSContextRef CYGetJSContext();
-CFStringRef CYCopyJSONString(JSContextRef context, JSValueRef value);
-void CYSetArgs(int argc, const char *argv[]);
+#include <apr-1/apr_pools.h>
 
-#ifdef __OBJC__
-void CYThrow(JSContextRef context, id error, JSValueRef *exception);
-#endif
+JSGlobalContextRef CYGetJSContext();
+const char *CYPoolJSONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception);
+void CYSetArgs(int argc, const char *argv[]);
 
 #endif/*CYCRIPT_HPP*/