lua_objsize -> lua_objlen (more compatible with use of `len´ in other

places [opcode name, metamethod index, etc.])
This commit is contained in:
Roberto Ierusalimschy
2005-05-31 11:34:02 -03:00
parent 05348d834b
commit d628795940
5 changed files with 12 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lauxlib.h,v 1.77 2005/05/25 13:21:26 roberto Exp roberto $
** $Id: lauxlib.h,v 1.78 2005/05/31 14:25:18 roberto Exp roberto $
** Auxiliary functions for building Lua libraries
** See Copyright Notice in lua.h
*/
@@ -16,7 +16,7 @@
#if !defined(LUA_COMPAT_GETN)
#define luaL_getn(L,i) ((int)lua_objsize(L, i))
#define luaL_getn(L,i) ((int)lua_objlen(L, i))
#define luaL_setn(L,i,j) ((void)0) /* no op! */
#endif