5.1 – Functions and Types
Here we list all functions and types from the auxiliary library in alphabetical order.
luaL_setmetatable[-0, +0, –] void luaL_setmetatable (lua_State *L, const char *tname); Sets the metatable
luaL_ref[-1, +0, m] int luaL_ref (lua_State *L, int t); Creates and returns a reference
luaL_getmetatable[-0, +1, m] int luaL_getmetatable (lua_State *L, const char *tname); Pushes onto
luaL_fileresult[-0, +(1|3), m] int luaL_fileresult (lua_State *L, int stat, const char *fname);
luaL_len[-0, +0, e] lua_Integer luaL_len (lua_State *L, int index); Returns the "length" of the
luaL_execresult[-0, +3, m] int luaL_execresult (lua_State *L, int stat); This function produces
luaL_newstate[-0, +0, –] lua_State *luaL_newstate (void); Creates a new Lua state. It calls
luaL_addlstring[-?, +?, m] void luaL_addlstring (luaL_Buffer *B, const char *s, size_t l); Adds
luaL_addsize[-?, +?, –] void luaL_addsize (luaL_Buffer *B, size_t n); Adds to the buffer B
luaL_pushresultsize[-?, +1, m] void luaL_pushresultsize (luaL_Buffer *B, size_t sz); Equivalent
Page 3 of 7