[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: error checking on lua_getglobal
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 10 Aug 2012 14:10:11 -0300
> How can I best check for lua_getglobal returns?
>
> In case the variable it checks is nil or isn't initialized.
Use lua_isnil(L,-1).