X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/2f51d6ab2c7e56fade7ac6118cf02df9107ca3af..5d7cc6d52918fbf09b9af24f6165961cae52836f:/JavaScript.hpp diff --git a/JavaScript.hpp b/JavaScript.hpp index a3e9f0a..7cead8e 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -46,7 +46,11 @@ #include #include +#ifdef HAVE_FFI_FFI_H +#include +#else #include +#endif extern JSStringRef Array_s; extern JSStringRef cy_s; @@ -59,13 +63,15 @@ extern JSStringRef push_s; extern JSStringRef splice_s; extern JSStringRef toCYON_s; extern JSStringRef toJSON_s; +extern JSStringRef toPointer_s; +extern JSStringRef toString_s; void CYInitializeDynamic(); JSGlobalContextRef CYGetJSContext(); JSObjectRef CYGetGlobalObject(JSContextRef context); extern "C" void CYSetupContext(JSGlobalContextRef context); -const char *CYExecute(apr_pool_t *pool, const char *code); +const char *CYExecute(apr_pool_t *pool, CYUTF8String code); void CYSetArgs(int argc, const char *argv[]);