luaL_optnumber[-0, +0, v] lua_Number luaL_optnumber (lua_State *L, int arg, lua_Number d); If
debug.getuservalue (u) Returns the Lua value associated to u. If u is not a full userdata, returns nil.
lua_rotate[-0, +0, –] void lua_rotate (lua_State *L, int idx, int n); Rotates the stack elements between
lua_Alloc typedef void * (*lua_Alloc) (void *ud, void *ptr, size_t osize,
lua_topointer[-0, +0, –] const void *lua_topointer (lua_State *L, int index); Converts the value at the
io.read (···) Equivalent to io.input():read(···).
package.cpath The path used by require to search for a C loader. Lua
io.output ([file]) Similar to io.input, but operates
lua_getfield[-0, +1, e] int lua_getfield (lua_State *L, int index, const char *k); Pushes onto
luaL_newlib[-0, +1, m] void luaL_newlib (lua_State *L, const luaL_Reg l[]); Creates a new table
Page 5 of 36