Re: error checking on lua_getglobal
[
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: 2012年8月10日 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).