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 /lvm.c | |
parent | 082aded149762ec21a7fa58ef0cc8f9a61038ca7 (diff) | |
download | lua-9d7bae0b6ab66e7e0cff8871e65ecddb55513d6b.tar.gz lua-9d7bae0b6ab66e7e0cff8871e65ecddb55513d6b.tar.bz2 lua-9d7bae0b6ab66e7e0cff8871e65ecddb55513d6b.zip |
better instrumentation for internal debugging
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.49 1999/02/09 18:01:55 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.50 1999/02/23 13:38:38 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 | */ |
@@ -643,6 +643,10 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) { | |||
643 | aux = highbyte(highbyte(aux)); | 643 | aux = highbyte(highbyte(aux)); |
644 | goto switchentry; /* do not reset "aux" */ | 644 | goto switchentry; /* do not reset "aux" */ |
645 | 645 | ||
646 | case CHECKSTACK: aux = *pc++; | ||
647 | LUA_ASSERT((S->top-S->stack)-base == aux, "wrong stack size"); | ||
648 | break; | ||
649 | |||
646 | } | 650 | } |
647 | } | 651 | } |
648 | } | 652 | } |