Re: error checking on lua_getglobal
Luiz Henrique de Figueiredo <lhf <at> tecgraf.puc-rio.br>
2012-08-10 17:10:11 GMT
> 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).