X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/d9c911529b1480684bb8b6280410f2d09c8525a1..b23692f3038296c94d25c84c55ed4c1bb49619cf:/Error.hpp?ds=sidebyside diff --git a/Error.hpp b/Error.hpp index 4d899e0..9fc6e85 100644 --- a/Error.hpp +++ b/Error.hpp @@ -22,8 +22,8 @@ #ifndef CYCRIPT_ERROR_HPP #define CYCRIPT_ERROR_HPP -#include "Pooling.hpp" #include "Exception.hpp" +#include "Pooling.hpp" #ifdef CY_EXECUTE struct CYJSError : @@ -41,7 +41,7 @@ struct CYJSError : CYJSError(JSContextRef context, const char *format, ...); virtual const char *PoolCString(CYPool &pool) const; - virtual JSValueRef CastJSValue(JSContextRef context) const; + virtual JSValueRef CastJSValue(JSContextRef context, const char *name) const; }; #endif @@ -58,7 +58,7 @@ struct _visible CYPoolError : virtual const char *PoolCString(CYPool &pool) const; #ifdef CY_EXECUTE - virtual JSValueRef CastJSValue(JSContextRef context) const; + virtual JSValueRef CastJSValue(JSContextRef context, const char *name) const; #endif };