lua_rawget[-1, +1, –] int lua_rawget (lua_State *L, int index); Similar to
lua_Writer typedef int (*lua_Writer) (lua_State *L, const void* p, size_t sz,
math.abs (x) Returns the absolute value of x. (integer/float)
lua_checkstack[-0, +0, –] int lua_checkstack (lua_State *L, int n); Ensures that the stack has space for
loadfile ([filename [, mode [, env]]]) Similar to load, but gets the chunk
debug.setmetatable (value, table) Sets the metatable for the given value to the given table (which can be nil). Returns value.
io.open (filename [, mode]) This function opens a file, in the mode specified in the string mode. In case of success, it returns a new file handle. The mode
string.reverse (s)s
lua_setallocf[-0, +0, –] void lua_setallocf (lua_State *L, lua_Alloc f, void *ud); Changes the allocator
lua_pushnumber[-0, +1, –] void lua_pushnumber (lua_State *L, lua_Number n); Pushes a float with value n
Page 31 of 36