lua_pushglobaltable[-0, +1, –] void lua_pushglobaltable (lua_State *L); Pushes the global environment onto
3.4.1 – Arithmetic Operators Lua supports the following arithmetic operators: +: addition -: subtraction *:
debug.getuservalue (u) Returns the Lua value associated to u. If u is not a full userdata, returns nil.
debug.getmetatable (value) Returns the metatable of the given value or nil if it does not have a metatable.
io.flush () Equivalent to io.output():flush().
luaL_getmetafield[-0, +(0|1), m] int luaL_getmetafield (lua_State *L, int obj, const char *e);
3.4.9 – Table Constructors Table constructors are expressions that create tables. Every time a constructor is evaluated, a new table is created. A constructor can be used to create an empty
luaL_unref[-0, +0, –] void luaL_unref (lua_State *L, int t, int ref); Releases reference ref
pcall (f [, arg1, ···]) Calls function f with the given arguments in protected mode. This means that any error inside f is not propagated; instead
next (table [, index]) Allows a program to traverse all fields of a table. Its first argument is a table and its second argument is an index in this table. next returns
Page 4 of 36