X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/f95d2598051e347460e028286ff2d33e5825e548..7b87d2051f4c0c29515b30b1202a23a52e2d5f9e:/Error.hpp?ds=sidebyside diff --git a/Error.hpp b/Error.hpp index 701720d..9fc6e85 100644 --- a/Error.hpp +++ b/Error.hpp @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2014 Jay Freeman (saurik) + * Copyright (C) 2009-2015 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -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,11 +41,11 @@ 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 -struct CYPoolError : +struct _visible CYPoolError : CYException { CYPool pool_; @@ -58,7 +58,7 @@ struct 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 };