aboutsummaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-16 13:55:04 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-12-16 13:55:04 -0200
commit3365a352431a0def0acccec0807751962726c4be (patch)
tree983a035d7f292f0ac16a17298df401a323bf512b /hash.c
parentfad57bfa008523c3568b613989a6a3f87f3cb83b (diff)
downloadlua-3365a352431a0def0acccec0807751962726c4be.tar.gz
lua-3365a352431a0def0acccec0807751962726c4be.tar.bz2
lua-3365a352431a0def0acccec0807751962726c4be.zip
new constant LUA_NOOBJECT
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hash.c b/hash.c
index 89b28fa6..c9b27b10 100644
--- a/hash.c
+++ b/hash.c
@@ -3,7 +3,7 @@
3** hash manager for lua 3** hash manager for lua
4*/ 4*/
5 5
6char *rcs_hash="$Id: hash.c,v 2.20 1994/11/25 19:27:03 roberto Exp $"; 6char *rcs_hash="$Id: hash.c,v 2.20 1994/11/28 15:10:51 roberto Exp roberto $";
7 7
8#include "mem.h" 8#include "mem.h"
9#include "opcode.h" 9#include "opcode.h"
@@ -313,9 +313,9 @@ void lua_next (void)
313 Hash *t; 313 Hash *t;
314 lua_Object o = lua_getparam(1); 314 lua_Object o = lua_getparam(1);
315 lua_Object r = lua_getparam(2); 315 lua_Object r = lua_getparam(2);
316 if (o == 0 || r == 0) 316 if (o == LUA_NOOBJECT || r == LUA_NOOBJECT)
317 lua_error ("too few arguments to function `next'"); 317 lua_error ("too few arguments to function `next'");
318 if (lua_getparam(3) != 0) 318 if (lua_getparam(3) != LUA_NOOBJECT)
319 lua_error ("too many arguments to function `next'"); 319 lua_error ("too many arguments to function `next'");
320 if (!lua_istable(o)) 320 if (!lua_istable(o))
321 lua_error ("first argument of function `next' is not a table"); 321 lua_error ("first argument of function `next' is not a table");