lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 17f695157cbffa67f39352dadd2d2e34322b73f0
parent b93f67f2ceacef971cb9e210219fe91e8d6e75e0
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Mon,  7 Jul 2003 10:30:35 -0300

define a `lua_isthread' for completeness

Diffstat:
Mlua.h | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lua.h b/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.176 2003/05/14 21:06:56 roberto Exp roberto $ +** $Id: lua.h,v 1.177 2003/05/15 12:20:04 roberto Exp roberto $ ** Lua - An Extensible Extension Language ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil ** http://www.lua.org mailto:info@lua.org @@ -248,6 +248,7 @@ LUA_API void lua_concat (lua_State *L, int n); #define lua_islightuserdata(L,n) (lua_type(L,n) == LUA_TLIGHTUSERDATA) #define lua_isnil(L,n) (lua_type(L,n) == LUA_TNIL) #define lua_isboolean(L,n) (lua_type(L,n) == LUA_TBOOLEAN) +#define lua_isthread(L,n) (lua_type(L,n) == LUA_TTHREAD) #define lua_isnone(L,n) (lua_type(L,n) == LUA_TNONE) #define lua_isnoneornil(L, n) (lua_type(L,n) <= 0)