5.1 – Functions and Types
Here we list all functions and types from the auxiliary library in alphabetical order.
luaL_fileresult[-0, +(1|3), m] int luaL_fileresult (lua_State *L, int stat, const char *fname);
luaL_pushresultsize[-?, +1, m] void luaL_pushresultsize (luaL_Buffer *B, size_t sz); Equivalent
luaL_checkversion[-0, +0, v] void luaL_checkversion (lua_State *L); Checks whether the core running
luaL_checkany[-0, +0, v] void luaL_checkany (lua_State *L, int arg); Checks whether the function
luaL_optinteger[-0, +0, v] lua_Integer luaL_optinteger (lua_State *L, int arg
luaL_getmetatable[-0, +1, m] int luaL_getmetatable (lua_State *L, const char *tname); Pushes onto
luaL_dofile[-0, +?, e] int luaL_dofile (lua_State *L, const char *filename); Loads and runs the
luaL_len[-0, +0, e] lua_Integer luaL_len (lua_State *L, int index); Returns the "length" of the
luaL_ref[-1, +0, m] int luaL_ref (lua_State *L, int t); Creates and returns a reference
luaL_testudata[-0, +0, m] void *luaL_testudata (lua_State *L, int arg, const char *tname); This
Page 3 of 7