lua-users home
lua-l archive

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


On 31 August 2011 14:21, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> But how do you validate, say, an index you give to a C function that
>> queries the Lua stack?
>
> Use lua_type. The manual says that it returns LUA_TNONE for a non-valid index.
>
>
Only a non valid acceptable index, a non valid non acceptable index is
undefined and there is no way to determine if an index is non valid
non acceptable.

Liam