X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7ab9e6779d33d38b29b313153a6b109574699617..b101f7547000aaa1354792aabc459de7cc9e91de:/JavaScript.hpp diff --git a/JavaScript.hpp b/JavaScript.hpp index fcefd7b..64dcbac 100644 --- a/JavaScript.hpp +++ b/JavaScript.hpp @@ -115,6 +115,13 @@ JSObjectRef CYCastJSObject(JSContextRef context, JSValueRef value); JSValueRef CYJSUndefined(JSContextRef context); JSValueRef CYJSNull(JSContextRef context); +void *CYCastPointerEx_(JSContextRef context, JSObjectRef value); + +template +_finline Type_ CYCastPointerEx(JSContextRef context, JSObjectRef value) { + return reinterpret_cast(CYCastPointerEx_(context, value)); +} + void *CYCastPointer_(JSContextRef context, JSValueRef value, bool *guess = NULL); template