[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Function Existence
- From: Diego Nehab <diego@...>
- Date: Mon, 26 Nov 2001 19:11:01 -0200 (EDT)
> 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.