diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-06 11:08:08 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-04-06 11:08:08 -0300 |
| commit | 3a9516ffc8de0d33051f83dc786dba615d6bac49 (patch) | |
| tree | 9608796ca5abb4a724d70d99cb34dd818eb95662 /hash.c | |
| parent | 42fa305649199712aad1c96beadb944b01277e3f (diff) | |
| download | lua-3a9516ffc8de0d33051f83dc786dba615d6bac49.tar.gz lua-3a9516ffc8de0d33051f83dc786dba615d6bac49.tar.bz2 lua-3a9516ffc8de0d33051f83dc786dba615d6bac49.zip | |
luaL check functions do not need the function name (it can be
accessed via luadebug interface).
Diffstat (limited to 'hash.c')
| -rw-r--r-- | hash.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** hash manager for lua | 3 | ** hash manager for lua |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_hash="$Id: hash.c,v 2.39 1997/03/31 14:17:09 roberto Exp roberto $"; | 6 | char *rcs_hash="$Id: hash.c,v 2.40 1997/04/04 15:35:37 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | #include "luamem.h" | 9 | #include "luamem.h" |
| @@ -302,8 +302,8 @@ void lua_next (void) | |||
| 302 | Hash *t; | 302 | Hash *t; |
| 303 | lua_Object o = lua_getparam(1); | 303 | lua_Object o = lua_getparam(1); |
| 304 | lua_Object r = lua_getparam(2); | 304 | lua_Object r = lua_getparam(2); |
| 305 | luaL_arg_check(lua_istable(o), "next", 1, "table expected"); | 305 | luaL_arg_check(lua_istable(o), 1, "table expected"); |
| 306 | luaL_arg_check(r != LUA_NOOBJECT, "next", 2, "value expected"); | 306 | luaL_arg_check(r != LUA_NOOBJECT, 2, "value expected"); |
| 307 | t = avalue(luaI_Address(o)); | 307 | t = avalue(luaI_Address(o)); |
| 308 | if (lua_isnil(r)) | 308 | if (lua_isnil(r)) |
| 309 | { | 309 | { |
