diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-09-18 11:03:18 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-09-18 11:03:18 -0300 |
| commit | d22526ec30c32f7ed422d2cd63d4b5c426769597 (patch) | |
| tree | f49002e0365ec2e33b18abaad9c853af2eee05b9 /lua.h | |
| parent | bd869c7b3147c277a974c896a5e3a013979ac64e (diff) | |
| download | lua-d22526ec30c32f7ed422d2cd63d4b5c426769597.tar.gz lua-d22526ec30c32f7ed422d2cd63d4b5c426769597.tar.bz2 lua-d22526ec30c32f7ed422d2cd63d4b5c426769597.zip | |
'lua_strlen' is for compatibility only
Diffstat (limited to 'lua.h')
| -rw-r--r-- | lua.h | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lua.h,v 1.218 2006/06/02 15:34:00 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.219 2006/09/11 14:07:24 roberto Exp roberto $ |
| 3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
| 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) | 4 | ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) |
| 5 | ** See Copyright Notice at the end of this file | 5 | ** See Copyright Notice at the end of this file |
| @@ -259,8 +259,6 @@ LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud); | |||
| 259 | 259 | ||
| 260 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) | 260 | #define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0) |
| 261 | 261 | ||
| 262 | #define lua_strlen(L,i) lua_objlen(L, (i)) | ||
| 263 | |||
| 264 | #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) | 262 | #define lua_isfunction(L,n) (lua_type(L, (n)) == LUA_TFUNCTION) |
| 265 | #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) | 263 | #define lua_istable(L,n) (lua_type(L, (n)) == LUA_TTABLE) |
| 266 | #define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) | 264 | #define lua_islightuserdata(L,n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) |
| @@ -284,7 +282,9 @@ LUA_API void lua_setallocf (lua_State *L, lua_Alloc f, void *ud); | |||
| 284 | ** compatibility macros and functions | 282 | ** compatibility macros and functions |
| 285 | */ | 283 | */ |
| 286 | 284 | ||
| 287 | #define lua_open() luaL_newstate() | 285 | #define lua_strlen(L,i) lua_objlen(L, (i)) |
| 286 | |||
| 287 | #define lua_open() luaL_newstate() | ||
| 288 | 288 | ||
| 289 | #define lua_getregistry(L) lua_pushvalue(L, LUA_REGISTRYINDEX) | 289 | #define lua_getregistry(L) lua_pushvalue(L, LUA_REGISTRYINDEX) |
| 290 | 290 | ||
