/* 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 {{{ */
#ifndef CYCRIPT_ERROR_HPP
#define CYCRIPT_ERROR_HPP
-#include "Pooling.hpp"
#include "Exception.hpp"
+#include "Pooling.hpp"
#ifdef CY_EXECUTE
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_;
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
};