From fcec09900f158aa939eb1c96607aaabf4c8171ef Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 7 Mar 2015 12:07:43 +0800 Subject: Added file+line reporting to error messages --- src/parse/common.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parse/common.hpp') diff --git a/src/parse/common.hpp b/src/parse/common.hpp index 0d6d550b..950a204d 100644 --- a/src/parse/common.hpp +++ b/src/parse/common.hpp @@ -5,11 +5,11 @@ #define GET_TOK(tok, lex) ((tok = lex.getToken()).type()) #define GET_CHECK_TOK(tok, lex, exp) do {\ if((tok = lex.getToken()).type() != exp) \ - throw ParseError::Unexpected(tok, Token(exp));\ + throw ParseError::Unexpected(lex, tok, Token(exp));\ } while(0) #define CHECK_TOK(tok, exp) do {\ if(tok.type() != exp) \ - throw ParseError::Unexpected(tok, Token(exp));\ + throw ParseError::Unexpected(lex, tok, Token(exp));\ } while(0) enum eParsePathGenericMode -- cgit v1.2.3