]> git.saurik.com Git - cycript.git/blob - cycript.hpp
c1e6751b5fa7de0d4a9f17732dfaec9d0d96258d
[cycript.git] / cycript.hpp
1 #ifndef CYCRIPT_H
2 #define CYCRIPT_H
3
4 #ifdef __OBJC__
5 #include <Foundation/Foundation.h>
6 #endif
7
8 #include <JavaScriptCore/JSBase.h>
9 #include <JavaScriptCore/JSValueRef.h>
10 #include <JavaScriptCore/JSObjectRef.h>
11 #include <JavaScriptCore/JSContextRef.h>
12 #include <JavaScriptCore/JSStringRef.h>
13 #include <JavaScriptCore/JSStringRefCF.h>
14
15 JSContextRef CYGetJSContext();
16 CFStringRef CYCopyJSONString(JSContextRef context, JSValueRef value);
17
18 #ifdef __OBJC__
19 void CYThrow(JSContextRef context, id error, JSValueRef *exception);
20 #endif
21
22 #endif/*CYCRIPT_H*/