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 /lua.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 'lua.h')
| -rw-r--r-- | lua.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.207 2005/05/16 19:21:11 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.208 2005/05/17 19:49:15 roberto Exp roberto $ |
| 3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
| 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
| 5 | ** http://www.lua.org | 5 | ** http://www.lua.org |
| @@ -147,7 +147,7 @@ LUA_API lua_Number (lua_tonumber) (lua_State *L, int idx); | |||
| 147 | LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); | 147 | LUA_API lua_Integer (lua_tointeger) (lua_State *L, int idx); |
| 148 | LUA_API int (lua_toboolean) (lua_State *L, int idx); | 148 | LUA_API int (lua_toboolean) (lua_State *L, int idx); |
| 149 | LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); | 149 | LUA_API const char *(lua_tolstring) (lua_State *L, int idx, size_t *len); |
| 150 | LUA_API size_t (lua_objsize) (lua_State *L, int idx); | 150 | LUA_API size_t (lua_objlen) (lua_State *L, int idx); |
| 151 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); | 151 | LUA_API lua_CFunction (lua_tocfunction) (lua_State *L, int idx); |
| 152 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); | 152 | LUA_API void *(lua_touserdata) (lua_State *L, int idx); |
| 153 | LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); | 153 | LUA_API lua_State *(lua_tothread) (lua_State *L, int idx); |
| @@ -257,7 +257,7 @@ LUA_API lua_Alloc (lua_getallocf) (lua_State *L, void **ud); | |||
| 257 | 257 | ||
| 258 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) | 258 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) |
| 259 | 259 | ||
| 260 | #define lua_strlen(L,i) lua_objsize(L, (i)) | 260 | #define lua_strlen(L,i) lua_objlen(L, (i)) |
| 261 | 261 | ||
| 262 | #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) | 262 | #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) |
| 263 | #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) | 263 | #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) |
