X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/20052ff75c224699725da0f8e096053009c62741..1e8d80477a3e058a30c477955f1e0c56deb6e956:/Error.hpp diff --git a/Error.hpp b/Error.hpp index f63180e..8721498 100644 --- a/Error.hpp +++ b/Error.hpp @@ -1,5 +1,5 @@ -/* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2015 Jay Freeman (saurik) +/* Cycript - The Truly Universal Scripting Language + * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -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 @@ -53,12 +53,13 @@ struct _visible CYPoolError : CYPoolError(const CYPoolError &rhs); + CYPoolError(const char *message); CYPoolError(const char *format, ...); CYPoolError(const char *format, va_list args); 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 };