lua-users home
lua-l archive

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


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