summaryrefslogtreecommitdiff
path: root/src/parse/common.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-07 12:07:43 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-07 12:07:43 +0800
commitfcec09900f158aa939eb1c96607aaabf4c8171ef (patch)
treeeaac668a8d19b56fee0cdafb218ec069cdab8bc5 /src/parse/common.hpp
parenta9692e359884672b30e1742bada368330115cc14 (diff)
downloadmrust-fcec09900f158aa939eb1c96607aaabf4c8171ef.tar.gz
Added file+line reporting to error messages
Diffstat (limited to 'src/parse/common.hpp')
-rw-r--r--src/parse/common.hpp4
1 files changed, 2 insertions, 2 deletions
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