]> git.saurik.com Git - cycript.git/blame - cycript.hpp
Minor refactoring, checkpoint commit.
[cycript.git] / cycript.hpp
CommitLineData
d35a3b07
JF
1#ifndef CYCRIPT_HPP
2#define CYCRIPT_HPP
057f943f
JF
3
4#ifdef __OBJC__
5#include <Foundation/Foundation.h>
6#endif
7
b09da87b 8#include <JavaScriptCore/JavaScript.h>
057f943f
JF
9#include <JavaScriptCore/JSStringRefCF.h>
10
478d4ed0 11#include <apr-1/apr_pools.h>
057f943f 12
478d4ed0 13JSGlobalContextRef CYGetJSContext();
4cf49641 14const char *CYPoolJSONString(apr_pool_t *pool, JSContextRef context, JSValueRef value, JSValueRef *exception);
478d4ed0 15void CYSetArgs(int argc, const char *argv[]);
579ed526
JF
16void CYSetProperty(JSContextRef context, JSObjectRef object, JSStringRef name, JSValueRef value);
17JSObjectRef CYGetGlobalObject(JSContextRef context);
18JSStringRef CYCopyJSString(const char *value);
057f943f 19
d35a3b07 20#endif/*CYCRIPT_HPP*/