lua_close[-0, +0, –] void lua_close (lua_State *L); Destroys all objects in the given Lua state (calling
luaL_optstring[-0, +0, v] const char *luaL_optstring (lua_State *L, int arg
pcall (f [, arg1, ···]) Calls function f with the given arguments in protected mode. This means that any error inside f is not propagated; instead
lua_pushglobaltable[-0, +1, –] void lua_pushglobaltable (lua_State *L); Pushes the global environment onto
package.cpath The path used by require to search for a C loader. Lua
luaL_getmetafield[-0, +(0|1), m] int luaL_getmetafield (lua_State *L, int obj, const char *e);
package.searchpath (name, path [, sep [, rep]]) Searches for the given name in the given path. A path is a string containing a sequence of templates
file:seek ([whence [, offset]]) Sets and gets the file position, measured from the beginning of the file, to the position given by offset plus a base specified by
dofile ([filename])dofilestdindofiledofile
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
Page 4 of 36