X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/56f57e5b36301ac84c1ca5d4eb7fa363f79c81f6..2ada05412ca83fce9be76b0f06602d9f79376128:/JavaScript.hpp?ds=sidebyside diff --git a/JavaScript.hpp b/JavaScript.hpp index a94dbb9..6ee7d9d 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2014 Jay Freeman (saurik) + * Copyright (C) 2009-2015 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -131,6 +131,8 @@ struct CYHook { bool (*PoolFFI)(CYPool *, JSContextRef, sig::Type *, ffi_type *, void *, JSValueRef); JSValueRef (*FromFFI)(JSContextRef, sig::Type *, ffi_type *, void *, bool, JSObjectRef); + + void *(*CastSymbol)(const char *); }; struct CYRegisterHook { @@ -205,6 +207,7 @@ class CYJSString { } }; +#ifdef __APPLE__ typedef struct OpaqueJSWeakObjectMap *JSWeakObjectMapRef; typedef void (*JSWeakMapDestroyedCallback)(JSWeakObjectMapRef map, void *data); @@ -213,5 +216,6 @@ extern "C" void JSWeakObjectMapSet(JSContextRef ctx, JSWeakObjectMapRef map, voi extern "C" JSObjectRef JSWeakObjectMapGet(JSContextRef ctx, JSWeakObjectMapRef map, void *key) __attribute__((__weak_import__)); extern "C" bool JSWeakObjectMapClear(JSContextRef ctx, JSWeakObjectMapRef map, void *key, JSObjectRef object) __attribute__((__weak_import__)); extern "C" void JSWeakObjectMapRemove(JSContextRef ctx, JSWeakObjectMapRef map, void* key) __attribute__((__weak_import__)); +#endif #endif/*CYCRIPT_JAVASCRIPT_HPP*/