lua-users home
lua-l archive

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


> I should have been more specific.  I mean from C++.  I could do a
> lua_getglobal(), then a lua_isnil(), then a lua_pop, but that seems a bit
> cumbersome.

I see no other way. Function values are just like any other type. There is
nothing specific to a function global. I would check lua_type, instead of
lua_isnil, just for safety.

Regards,
Diego.