lua_pushlightuserdata[-0, +1, –] void lua_pushlightuserdata (lua_State *L, void *p); Pushes a light userdata
lua_settop[-?, +?, –] void lua_settop (lua_State *L, int index); Accepts any index, or 0, and sets the
lua_upvalueid[-0, +0, –] void *lua_upvalueid (lua_State *L, int funcindex, int n); Returns a unique identifier
lua_dump[-0, +0, –] int lua_dump (lua_State *L, lua_Writer writer,
io.tmpfile () In case of success, returns a handle for a temporary file. This file is opened in update mode and it is automatically removed when the program ends.
lua_KContext typedef ... lua_KContext; The type for continuation-function contexts. It must be a numeric type. This type is defined
3.3.4 – Control Structures The control structures if, while, and repeat have the usual meaning and familiar syntax: stat ::=
luaL_Stream typedef struct luaL_Stream { FILE *f; lua_CFunction closef; } luaL_Stream; The standard representation for file handles
lua_pcallk[-(nargs + 1), +(nresults|1), –] int lua_pcallk (lua_State *L, int nargs,
debug.setlocal ([thread,] level, local, value) This function assigns the value value to the local variable with index local of the function at level
Page 24 of 36