]> git.saurik.com Git - cycript.git/blob - cycript.hpp
Remove system.global temporarily, added libffi Depends:, and setup REPL with _ variab...
[cycript.git] / cycript.hpp
1 #ifndef CYCRIPT_HPP
2 #define CYCRIPT_HPP
3
4 #ifdef __OBJC__
5 #include <Foundation/Foundation.h>
6 #endif
7
8 #include <JavaScriptCore/JavaScript.h>
9 #include <JavaScriptCore/JSStringRefCF.h>
10
11 #include <apr-1/apr_pools.h>
12
13 JSGlobalContextRef CYGetJSContext();
14 const char *CYPoolJSONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception);
15 void CYSetArgs(int argc, const char *argv[]);
16 void CYSetProperty(JSContextRef context, JSObjectRef object, JSStringRef name, JSValueRef value);
17 JSObjectRef CYGetGlobalObject(JSContextRef context);
18 JSStringRef CYCopyJSString(const char *value);
19
20 #endif/*CYCRIPT_HPP*/