diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-24 14:55:51 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-02-24 14:55:51 -0300 |
commit | 9d7bae0b6ab66e7e0cff8871e65ecddb55513d6b (patch) | |
tree | 18a4b30df4e0518580cd6dc7a370892f5f608021 /lparser.c | |
parent | 082aded149762ec21a7fa58ef0cc8f9a61038ca7 (diff) | |
download | lua-9d7bae0b6ab66e7e0cff8871e65ecddb55513d6b.tar.gz lua-9d7bae0b6ab66e7e0cff8871e65ecddb55513d6b.tar.bz2 lua-9d7bae0b6ab66e7e0cff8871e65ecddb55513d6b.zip |
better instrumentation for internal debugging
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 1.20 1999/02/09 18:01:55 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 1.21 1999/02/24 15:37:19 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 | */ |
@@ -403,6 +403,10 @@ static void close_exp (LexState *ls, int pc, int nresults) { | |||
403 | deltastack(ls, nresults); /* push results */ | 403 | deltastack(ls, nresults); /* push results */ |
404 | deltastack(ls, -(code[pc]+1)); /* pop params (at code[pc]) and function */ | 404 | deltastack(ls, -(code[pc]+1)); /* pop params (at code[pc]) and function */ |
405 | } | 405 | } |
406 | #ifdef DEBUG | ||
407 | if (nresults != MULT_RET) | ||
408 | code_oparg(ls, CHECKSTACK, ls->fs->stacksize, 0); | ||
409 | #endif | ||
406 | } | 410 | } |
407 | 411 | ||
408 | 412 | ||