X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c15969fd0a6280c60d2f35876b5343004fed2b11..7eb6c2f23b20ac241ec4cc1183654d9b01fd86ef:/Error.hpp 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