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 /lauxlib.h | |
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 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.77 2005/05/25 13:21:26 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.78 2005/05/31 14:25:18 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | 17 | ||
18 | #if !defined(LUA_COMPAT_GETN) | 18 | #if !defined(LUA_COMPAT_GETN) |
19 | #define luaL_getn(L,i) ((int)lua_objsize(L, i)) | 19 | #define luaL_getn(L,i) ((int)lua_objlen(L, i)) |
20 | #define luaL_setn(L,i,j) ((void)0) /* no op! */ | 20 | #define luaL_setn(L,i,j) ((void)0) /* no op! */ |
21 | #endif | 21 | #endif |
22 | 22 | ||