diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-16 13:55:04 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-12-16 13:55:04 -0200 |
| commit | 3365a352431a0def0acccec0807751962726c4be (patch) | |
| tree | 983a035d7f292f0ac16a17298df401a323bf512b /table.c | |
| parent | fad57bfa008523c3568b613989a6a3f87f3cb83b (diff) | |
| download | lua-3365a352431a0def0acccec0807751962726c4be.tar.gz lua-3365a352431a0def0acccec0807751962726c4be.tar.bz2 lua-3365a352431a0def0acccec0807751962726c4be.zip | |
new constant LUA_NOOBJECT
Diffstat (limited to '')
| -rw-r--r-- | table.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** Module to control static tables | 3 | ** Module to control static tables |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_table="$Id: table.c,v 2.22 1994/11/21 21:41:09 roberto Exp roberto $"; | 6 | char *rcs_table="$Id: table.c,v 2.23 1994/11/23 14:31:11 roberto Stab roberto $"; |
| 7 | 7 | ||
| 8 | #include <string.h> | 8 | #include <string.h> |
| 9 | 9 | ||
| @@ -226,9 +226,9 @@ static void lua_nextvar (void) | |||
| 226 | char *varname; | 226 | char *varname; |
| 227 | TreeNode *next; | 227 | TreeNode *next; |
| 228 | lua_Object o = lua_getparam(1); | 228 | lua_Object o = lua_getparam(1); |
| 229 | if (o == 0) | 229 | if (o == LUA_NOOBJECT) |
| 230 | lua_reportbug("too few arguments to function `nextvar'"); | 230 | lua_reportbug("too few arguments to function `nextvar'"); |
| 231 | if (lua_getparam(2) != NULL) | 231 | if (lua_getparam(2) != LUA_NOOBJECT) |
| 232 | lua_reportbug("too many arguments to function `nextvar'"); | 232 | lua_reportbug("too many arguments to function `nextvar'"); |
| 233 | if (lua_isnil(o)) | 233 | if (lua_isnil(o)) |
| 234 | varname = NULL; | 234 | varname = NULL; |
