better instrumentation for internal debugging

This commit is contained in:
Roberto Ierusalimschy
1999-02-24 14:55:51 -03:00
parent 082aded149
commit 9d7bae0b6a
4 changed files with 29 additions and 8 deletions

6
lvm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lvm.c,v 1.49 1999/02/09 18:01:55 roberto Exp roberto $
** $Id: lvm.c,v 1.50 1999/02/23 13:38:38 roberto Exp roberto $
** Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -643,6 +643,10 @@ StkId luaV_execute (Closure *cl, TProtoFunc *tf, StkId base) {
aux = highbyte(highbyte(aux));
goto switchentry; /* do not reset "aux" */
case CHECKSTACK: aux = *pc++;
LUA_ASSERT((S->top-S->stack)-base == aux, "wrong stack size");
break;
}
}
}