From d628795940cb00420829077869c0efe5678b4e18 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 31 May 2005 11:34:02 -0300 Subject: lua_objsize -> lua_objlen (more compatible with use of `lenĀ“ in other places [opcode name, metamethod index, etc.]) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ltests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltests.c') diff --git a/ltests.c b/ltests.c index 9e7feda2..4ed78f25 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.23 2005/03/28 17:17:53 roberto Exp roberto $ +** $Id: ltests.c,v 2.24 2005/05/03 19:01:17 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -882,7 +882,7 @@ static int testC (lua_State *L) { lua_pushstring(L1, s); } else if EQ("objsize") { - lua_pushinteger(L1, lua_objsize(L1, getindex)); + lua_pushinteger(L1, lua_objlen(L1, getindex)); } else if EQ("tocfunction") { lua_pushcfunction(L1, lua_tocfunction(L1, getindex)); -- cgit v1.2.3-55-g6feb