lua_pushglobaltable[-0, +1, –] void lua_pushglobaltable (lua_State *L); Pushes the global environment onto
luaL_addvalue[-1, +?, m] void luaL_addvalue (luaL_Buffer *B); Adds the value at the top of the
luaL_checkstack[-0, +0, v] void luaL_checkstack (lua_State *L, int sz, const char *msg); Grows
lua_tothread[-0, +0, –] lua_State *lua_tothread (lua_State *L, int index); Converts the value at the given
math.deg (x) Converts the angle x from radians to degrees.
lua_error[-1, +0, v] int lua_error (lua_State *L); Generates a Lua error, using the value at the
debug.traceback ([thread,] [message [, level]]) If message is present but is neither a string nor nil, this function returns message without further
lua_callk[-(nargs + 1), +nresults, e] void lua_callk (lua_State *L, int nargs,
string.rep (s, n [, sep])nssepsepn (Note that it is very easy to exhaust the memory of your machine with a single
io.flush () Equivalent to io.output():flush().
Page 3 of 36