diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:34:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-31 11:34:02 -0300 |
commit | d628795940cb00420829077869c0efe5678b4e18 (patch) | |
tree | 882c6e993c7ffed27dcc142b2f15e88e95c5a073 /ltests.c | |
parent | 05348d834b48a4b0720d0576c797877b98642e63 (diff) | |
download | lua-d628795940cb00420829077869c0efe5678b4e18.tar.gz lua-d628795940cb00420829077869c0efe5678b4e18.tar.bz2 lua-d628795940cb00420829077869c0efe5678b4e18.zip |
lua_objsize -> lua_objlen (more compatible with use of `lenĀ“ in other
places [opcode name, metamethod index, etc.])
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltests.c,v 2.23 2005/03/28 17:17:53 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.24 2005/05/03 19:01:17 roberto Exp roberto $ |
3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -882,7 +882,7 @@ static int testC (lua_State *L) { | |||
882 | lua_pushstring(L1, s); | 882 | lua_pushstring(L1, s); |
883 | } | 883 | } |
884 | else if EQ("objsize") { | 884 | else if EQ("objsize") { |
885 | lua_pushinteger(L1, lua_objsize(L1, getindex)); | 885 | lua_pushinteger(L1, lua_objlen(L1, getindex)); |
886 | } | 886 | } |
887 | else if EQ("tocfunction") { | 887 | else if EQ("tocfunction") { |
888 | lua_pushcfunction(L1, lua_tocfunction(L1, getindex)); | 888 | lua_pushcfunction(L1, lua_tocfunction(L1, getindex)); |