lua-users home
lua-l archive

Re: error checking on lua_getglobal

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


> 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).

AltStyle によって変換されたページ (->オリジナル) /