X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/15e522675b705fbb13087c43431122cb679e57c6..2b1c9594666c525586f1956c064d60ea2e7a0a3b:/JavaScript.hpp?ds=sidebyside diff --git a/JavaScript.hpp b/JavaScript.hpp index 87689b5..ebc2bac 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -103,11 +103,11 @@ JSObjectRef CYCastJSObject(JSContextRef context, JSValueRef value); JSValueRef CYJSUndefined(JSContextRef context); JSValueRef CYJSNull(JSContextRef context); -void *CYCastPointer_(JSContextRef context, JSValueRef value); +void *CYCastPointer_(JSContextRef context, JSValueRef value, bool *guess = NULL); template -_finline Type_ CYCastPointer(JSContextRef context, JSValueRef value) { - return reinterpret_cast(CYCastPointer_(context, value)); +_finline Type_ CYCastPointer(JSContextRef context, JSValueRef value, bool *guess = NULL) { + return reinterpret_cast(CYCastPointer_(context, value, guess)); } void CYPoolFFI(CYPool *pool, JSContextRef context, sig::Type *type, ffi_type *ffi, void *data, JSValueRef value);