Re: Acceptable indicies
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Acceptable indicies
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2011年8月31日 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.