diff options
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.103 2000/08/08 18:26:05 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.104 2000/08/08 20:42:07 roberto Exp roberto $ |
3 | ** LL(1) Parser and code generator for Lua | 3 | ** LL(1) Parser and code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -961,8 +961,6 @@ static void funcstat (LexState *ls, int line) { | |||
961 | /* funcstat -> FUNCTION funcname body */ | 961 | /* funcstat -> FUNCTION funcname body */ |
962 | int needself; | 962 | int needself; |
963 | expdesc v; | 963 | expdesc v; |
964 | check_condition(ls, (ls->fs->prev == NULL), | ||
965 | "cannot nest this kind of function declaration"); | ||
966 | next(ls); /* skip FUNCTION */ | 964 | next(ls); /* skip FUNCTION */ |
967 | needself = funcname(ls, &v); | 965 | needself = funcname(ls, &v); |
968 | body(ls, needself, line); | 966 | body(ls, needself, line); |