better use of "ASSERT".

This commit is contained in:
Roberto Ierusalimschy
1998-03-09 18:49:52 -03:00
parent be6d215f67
commit 0969a971cd
9 changed files with 34 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
%{
/*
** $Id: lua.stx,v 1.33 1998/01/12 13:35:37 roberto Exp roberto $
** $Id: lua.stx,v 1.34 1998/02/11 20:56:46 roberto Exp roberto $
** Syntax analizer and code generator
** See Copyright Notice in lua.h
*/
@@ -679,6 +679,8 @@ chunk : statlist ret ;
statlist : /* empty */
| statlist stat sc
{ LUA_ASSERT(L->currState->stacksize == L->currState->nlocalvar,
"stack size != # local vars"); }
;
sc : /* empty */ | ';' ;