3.4.3 – Coercions and Conversions Lua provides some automatic conversions between some types and representations at run time. Bitwise operators always convert float operands to integers. Exponentiation
lua_yieldk[-?, +?, e] int lua_yieldk (lua_State *L, int nresults, lua_KContext
luaL_dofile[-0, +?, e] int luaL_dofile (lua_State *L, const char *filename); Loads and runs the
luaL_testudata[-0, +0, m] void *luaL_testudata (lua_State *L, int arg, const char *tname); This
lua_next[-1, +(2|0), e] int lua_next (lua_State *L, int index); Pops a key from the stack, and
os.exit ([code [, close]]) Calls the ISO C function exit to terminate the host program. If code is true, the returned status is EXIT_SUCCESS;
debug.gethook ([thread]) Returns the current hook settings of the thread, as three values: the current hook function, the current hook mask, and the current hook count (as set
luaL_fileresult[-0, +(1|3), m] int luaL_fileresult (lua_State *L, int stat, const char *fname);
lua_typename[-0, +0, –] const char *lua_typename (lua_State *L, int tp); Returns the name of the type encoded
math.fmod (x, y) Returns the remainder of the division of x by y that rounds the quotient towards zero. (integer/float)
Page 14 of 36