[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Acceptable indicies
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 31 Aug 2011 10:21:22 -0300
> 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.