X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/8d20f0f1540c4c116f52e333edc57a4f549927e8..d4222ffb92c744b8ebfca3914267df58f6f2a5ec:/Exception.hpp diff --git a/Exception.hpp b/Exception.hpp index 3b5b6b7..cd4bd08 100644 --- a/Exception.hpp +++ b/Exception.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 {{{ */ @@ -110,6 +110,7 @@ static _finline bool CYContains(int value, size_t many, const int *okay) { _assert_("sqlcall", _value == 0 || _value >= 100 && _value < 200, #expr, " %u:%s", _value, sqlite3_errmsg(database_)); \ _value; }) +#ifdef CY_EXECUTE struct CYJSException { JSContextRef context_; JSValueRef value_; @@ -133,5 +134,6 @@ struct CYJSException { CYJSException _error(context); \ (code)(args, _error); \ }) +#endif #endif/*CYCRIPT_ERROR_HPP*/