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