lua_remove[-1, +0, –] void lua_remove (lua_State *L, int index); Removes the element at the given valid
lua_getupvalue[-0, +(0|1), –] const char *lua_getupvalue (lua_State *L, int funcindex, int n); Gets information
lua_pushcclosure[-n, +1, m] void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); Pushes
lua_isnil[-0, +0, –] int lua_isnil (lua_State *L, int index); Returns 1 if the value at the given index
setmetatable (table, metatable) Sets the metatable for the given table. (To change the metatable of other types from Lua code, you must use the debug library (
type (v)nilnilnumberstringbooleantablefunctionthreaduserdata
lua_settable[-2, +0, e] void lua_settable (lua_State *L, int index); Does the equivalent to t[k]
lua_newstate[-0, +0, –] lua_State *lua_newstate (lua_Alloc f, void *ud); Creates a new thread running in
debug.getupvalue (f, up) This function returns the name and the value of the upvalue with index up of the function f. The function returns nil
lua_touserdata[-0, +0, –] void *lua_touserdata (lua_State *L, int index); If the value at the given index
Page 28 of 36