diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.7 2004/11/19 16:59:08 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.8 2004/12/03 20:35:33 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -133,7 +133,7 @@ static void check_match (LexState *ls, int what, int who, int where) { | |||
133 | 133 | ||
134 | static TString *str_checkname (LexState *ls) { | 134 | static TString *str_checkname (LexState *ls) { |
135 | TString *ts; | 135 | TString *ts; |
136 | check_condition(ls, (ls->t.token == TK_NAME), "<name> expected"); | 136 | if (ls->t.token != TK_NAME) error_expected(ls, TK_NAME); |
137 | ts = ls->t.seminfo.ts; | 137 | ts = ls->t.seminfo.ts; |
138 | next(ls); | 138 | next(ls); |
139 | return ts; | 139 | return ts; |