lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ralph Hempel wrote:

Can anyone explain why these are not in the API?

Ralph

Actually, there is:
if lua_type(L,1) = LUA_TBOOLEAN then arg = lua_toboolean(L,1) end

or, you could use the macro:
if lua_isboolean(L,1)  then arg = lua_toboolean(L,1) end