X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c15969fd0a6280c60d2f35876b5343004fed2b11..142cb9e3c2eaba94e04b43f66178f5c4439bd1a8:/Error.hpp?ds=inline diff --git a/Error.hpp b/Error.hpp index d46dbf8..3165287 100644 --- a/Error.hpp +++ b/Error.hpp @@ -40,7 +40,7 @@ struct CYJSError : CYJSError(JSContextRef context, const char *format, ...); - virtual const char *PoolCString(apr_pool_t *pool) const; + virtual const char *PoolCString(CYPool &pool) const; virtual JSValueRef CastJSValue(JSContextRef context) const; }; #endif @@ -51,10 +51,12 @@ struct CYPoolError : CYPool pool_; const char *message_; + CYPoolError(const CYPoolError &rhs); + CYPoolError(const char *format, ...); CYPoolError(const char *format, va_list args); - virtual const char *PoolCString(apr_pool_t *pool) const; + virtual const char *PoolCString(CYPool &pool) const; #ifdef CY_EXECUTE virtual JSValueRef CastJSValue(JSContextRef context) const; #endif