new constant LUA_NOOBJECT

This commit is contained in:
Roberto Ierusalimschy
1994-12-16 13:55:04 -02:00
parent fad57bfa00
commit 3365a35243
3 changed files with 9 additions and 9 deletions

View File

@@ -3,7 +3,7 @@
** Module to control static tables
*/
char *rcs_table="$Id: table.c,v 2.22 1994/11/21 21:41:09 roberto Exp roberto $";
char *rcs_table="$Id: table.c,v 2.23 1994/11/23 14:31:11 roberto Stab roberto $";
#include <string.h>
@@ -226,9 +226,9 @@ static void lua_nextvar (void)
char *varname;
TreeNode *next;
lua_Object o = lua_getparam(1);
if (o == 0)
if (o == LUA_NOOBJECT)
lua_reportbug("too few arguments to function `nextvar'");
if (lua_getparam(2) != NULL)
if (lua_getparam(2) != LUA_NOOBJECT)
lua_reportbug("too many arguments to function `nextvar'");
if (lua_isnil(o))
varname = NULL;