aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-18 11:03:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-18 11:03:18 -0300
commitd22526ec30c32f7ed422d2cd63d4b5c426769597 (patch)
treef49002e0365ec2e33b18abaad9c853af2eee05b9 /lua.h
parentbd869c7b3147c277a974c896a5e3a013979ac64e (diff)
downloadlua-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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua.h b/lua.h
index e4daafae..7e698e36 100644
--- a/lua.h
+++ b/lua.h
@@ -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