diff options
author | David Robillard <d@drobilla.net> | 2019-02-15 22:24:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-02-15 22:24:54 +0100 |
commit | b321fb5d3d6b3c2855c2fcc049c6f3b8fb13a7a8 (patch) | |
tree | 2347b5b8d8eac8647267fb33ed35cd0f8dfabdf8 /src/resp.hpp | |
parent | 80801dc725dbb08c67ddee92fc742093f8c2bc7c (diff) | |
download | resp-b321fb5d3d6b3c2855c2fcc049c6f3b8fb13a7a8.tar.gz resp-b321fb5d3d6b3c2855c2fcc049c6f3b8fb13a7a8.tar.bz2 resp-b321fb5d3d6b3c2855c2fcc049c6f3b8fb13a7a8.zip |
WIP: Port to LLVM7llvm7
Diffstat (limited to 'src/resp.hpp')
-rw-r--r-- | src/resp.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/resp.hpp b/src/resp.hpp index 9179b16..892ba13 100644 --- a/src/resp.hpp +++ b/src/resp.hpp @@ -38,7 +38,7 @@ #include <boost/format.hpp> -#define THROW_IF(cond, error, ...) { if (cond) throw Error(error, __VA_ARGS__); } +#define THROW_IF(cond, error, ...) { if (cond) throw RespError(error, __VA_ARGS__); } using namespace std; using boost::format; @@ -58,8 +58,8 @@ struct Cursor { }; /// Compilation error -struct Error { - Error(Cursor c, const string& m) : loc(c), msg(m) {} +struct RespError { + RespError(Cursor c, const string& m) : loc(c), msg(m) {} const string what() const { return (loc ? loc.str() + ": " : "") + "error: " + msg; } const Cursor loc; const string msg; @@ -545,7 +545,7 @@ struct PEnv : private map<const string, const char*> { } } - const AST* parse(Cursor& cur, std::istream& in) throw(Error); + const AST* parse(Cursor& cur, std::istream& in); const AST* expand(const AST* exp); typedef std::set<std::string> Primitives; @@ -931,7 +931,7 @@ int repl(CEnv& cenv); const AST* resp_cps(CEnv& cenv, const AST* ast, const AST* k) throw(); -void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast) throw(Error); +void resp_constrain(TEnv& tenv, Constraints& c, const AST* ast); typedef const AST* (RespPass)(CEnv& cenv, Code& code, const AST* ast); |