5.1 – Functions and Types
Here we list all functions and types from the auxiliary library in alphabetical order.
luaL_getsubtable[-0, +1, e] int luaL_getsubtable (lua_State *L, int idx, const char *fname); Ensures
luaL_argcheck[-0, +0, v] void luaL_argcheck (lua_State *L, int cond,
luaL_checkversion[-0, +0, v] void luaL_checkversion (lua_State *L); Checks whether the core running
luaL_len[-0, +0, e] lua_Integer luaL_len (lua_State *L, int index); Returns the "length" of the
luaL_checkudata[-0, +0, v] void *luaL_checkudata (lua_State *L, int arg, const char *tname); Checks
luaL_newstate[-0, +0, –] lua_State *luaL_newstate (void); Creates a new Lua state. It calls
luaL_getmetatable[-0, +1, m] int luaL_getmetatable (lua_State *L, const char *tname); Pushes onto
luaL_addsize[-?, +?, –] void luaL_addsize (luaL_Buffer *B, size_t n); Adds to the buffer B
luaL_fileresult[-0, +(1|3), m] int luaL_fileresult (lua_State *L, int stat, const char *fname);
luaL_optinteger[-0, +0, v] lua_Integer luaL_optinteger (lua_State *L, int arg
Page 3 of 7