]> git.saurik.com Git - cycript.git/blob - cycript.hpp
2edea84b4e6d44c45c661c2643f3b9066bc74b97
[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 JSContextRef CYGetJSContext();
12 CFStringRef CYCopyJSONString(JSContextRef context, JSValueRef value);
13 void CYSetArgs(int argc, const char *argv[]);
14
15 #ifdef __OBJC__
16 void CYThrow(JSContextRef context, id error, JSValueRef *exception);
17 #endif
18
19 #endif/*CYCRIPT_HPP*/