diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-05-21 14:23:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-05-21 14:23:15 -0300 |
commit | bc8619342ae67226b55598047ab677bd93dfba5e (patch) | |
tree | 25f477da7dc4f3f2456dfb4db9f9a5db9b4f455d | |
parent | 48326500d039c360f5abd0fe073902046124b1ba (diff) | |
download | lua-bc8619342ae67226b55598047ab677bd93dfba5e.tar.gz lua-bc8619342ae67226b55598047ab677bd93dfba5e.tar.bz2 lua-bc8619342ae67226b55598047ab677bd93dfba5e.zip |
better control of stack size (only for DEBUG).
-rw-r--r-- | lvm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.54 1999/03/10 14:09:45 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.55 1999/04/13 19:28:49 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -620,7 +620,8 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) { | |||
620 | goto switchentry; /* do not reset "aux" */ | 620 | goto switchentry; /* do not reset "aux" */ |
621 | 621 | ||
622 | case CHECKSTACK: aux = *pc++; | 622 | case CHECKSTACK: aux = *pc++; |
623 | LUA_ASSERT((S->top-S->stack)-base == aux, "wrong stack size"); | 623 | LUA_ASSERT((S->top-S->stack)-base == aux && S->last >= S->top, |
624 | "wrong stack size"); | ||
624 | break; | 625 | break; |
625 | 626 | ||
626 | } | 627 | } |