X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/d15b59f5d4f43d12719c5ce37518246058b405c6..15024d7e7c224d837592094932a2da18d17ee015:/Error.hpp diff --git a/Error.hpp b/Error.hpp index a87e855..2fc9f49 100644 --- a/Error.hpp +++ b/Error.hpp @@ -43,6 +43,7 @@ #include "Pooling.hpp" #include "Exception.hpp" +#ifdef CY_EXECUTE struct CYJSError : CYException { @@ -60,6 +61,7 @@ struct CYJSError : virtual const char *PoolCString(apr_pool_t *pool) const; virtual JSValueRef CastJSValue(JSContextRef context) const; }; +#endif struct CYPoolError : CYException @@ -71,7 +73,9 @@ struct CYPoolError : CYPoolError(const char *format, va_list args); virtual const char *PoolCString(apr_pool_t *pool) const; +#ifdef CY_EXECUTE virtual JSValueRef CastJSValue(JSContextRef context) const; +#endif }; #endif/*CYCRIPT_ERROR_HPP*/