diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-09 18:49:52 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-09 18:49:52 -0300 |
| commit | 0969a971cd41921bd5ee72c1da880455bcca3bb4 (patch) | |
| tree | 74be9a39706eeb1e7f4e5c2cf49693364c399790 /lua.stx | |
| parent | be6d215f674f3d148d3f80a0553e8b2aa6da51d7 (diff) | |
| download | lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.gz lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.tar.bz2 lua-0969a971cd41921bd5ee72c1da880455bcca3bb4.zip | |
better use of "ASSERT".
Diffstat (limited to 'lua.stx')
| -rw-r--r-- | lua.stx | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | %{ | 1 | %{ |
| 2 | /* | 2 | /* |
| 3 | ** $Id: lua.stx,v 1.33 1998/01/12 13:35:37 roberto Exp roberto $ | 3 | ** $Id: lua.stx,v 1.34 1998/02/11 20:56:46 roberto Exp roberto $ |
| 4 | ** Syntax analizer and code generator | 4 | ** Syntax analizer and code generator |
| 5 | ** See Copyright Notice in lua.h | 5 | ** See Copyright Notice in lua.h |
| 6 | */ | 6 | */ |
| @@ -679,6 +679,8 @@ chunk : statlist ret ; | |||
| 679 | 679 | ||
| 680 | statlist : /* empty */ | 680 | statlist : /* empty */ |
| 681 | | statlist stat sc | 681 | | statlist stat sc |
| 682 | { LUA_ASSERT(L->currState->stacksize == L->currState->nlocalvar, | ||
| 683 | "stack size != # local vars"); } | ||
| 682 | ; | 684 | ; |
| 683 | 685 | ||
| 684 | sc : /* empty */ | ';' ; | 686 | sc : /* empty */ | ';' ; |
