luaL_optinteger[-0, +0, v] lua_Integer luaL_optinteger (lua_State *L, int arg
lua_rawlen[-0, +0, –] size_t lua_rawlen (lua_State *L, int index); Returns the raw "length" of the value
lua_resume[-?, +?, –] int lua_resume (lua_State *L, lua_State *from, int nargs); Starts and resumes a coroutine
3.3.2 – Chunks The unit of compilation of Lua is called a chunk. Syntactically, a chunk is simply a block: chunk ::= block Lua
lua_pushcfunction[-0, +1, –] void lua_pushcfunction (lua_State *L, lua_CFunction f); Pushes a C function
math.max (x, ···) Returns the argument with the maximum value, according to the Lua operator <. (integer/float)
require (modname) Loads the given module. The function starts by looking into the package
3.4.11 – Function Definitions The syntax for function definition is functiondef ::= function funcbody funcbody ::= ‘(’ [parlist] ‘)’ block end
lua_next[-1, +(2|0), e] int lua_next (lua_State *L, int index); Pops a key from the stack, and
package.path The path used by require to search for a Lua loader. At
Page 14 of 36