lua-users home
lua-l archive

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

Romulo Bahiense wrote:
Merick wrote:
Ralph Hempel wrote:

Can anyone explain why these are not in the API?


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

Is this Lua or C? Or both? :P


Actually, It's FreeBasic ;)