diff options
Diffstat (limited to 'src/parse/common.hpp')
-rw-r--r-- | src/parse/common.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/parse/common.hpp b/src/parse/common.hpp index 38ef3c96..ff72920c 100644 --- a/src/parse/common.hpp +++ b/src/parse/common.hpp @@ -4,12 +4,16 @@ #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(lex, tok, Token(exp));\
+ if((tok = lex.getToken()).type() != exp) { \
+ DEBUG("GET_CHECK_TOK " << __FILE__ << ":" << __LINE__); \
+ throw ParseError::Unexpected(lex, tok, Token(exp));\
+ }\
} while(0)
#define CHECK_TOK(tok, exp) do {\
- if(tok.type() != exp) \
- throw ParseError::Unexpected(lex, tok, Token(exp));\
+ if(tok.type() != exp) { \
+ DEBUG("CHECK_TOK " << __FILE__ << ":" << __LINE__); \
+ throw ParseError::Unexpected(lex, tok, Token(exp));\
+ } \
} while(0)
enum eParsePathGenericMode
|