5.1 – Functions and Types
Here we list all functions and types from the auxiliary library in alphabetical order.
luaL_newmetatable[-0, +1, m] int luaL_newmetatable (lua_State *L, const char *tname); If the registry
luaL_requiref[-0, +1, e] void luaL_requiref (lua_State *L, const char *modname, lua_CFunction
luaL_Stream typedef struct luaL_Stream { FILE *f; lua_CFunction closef; } luaL_Stream; The standard representation for file handles
luaL_error[-0, +0, v] int luaL_error (lua_State *L, const char *fmt, ...); Raises an error. The
luaL_buffinit[-0, +0, –] void luaL_buffinit (lua_State *L, luaL_Buffer *B); Initializes a buffer B
luaL_addchar[-?, +?, m] void luaL_addchar (luaL_Buffer *B, char c); Adds the byte c
luaL_loadbuffer[-0, +1, –] int luaL_loadbuffer (lua_State *L, const char *buff,
luaL_prepbuffsize[-?, +?, m] char *luaL_prepbuffsize (luaL_Buffer *B, size_t sz); Returns an address
luaL_checklstring[-0, +0, v] const char *luaL_checklstring (lua_State *L, int arg, size_t *l);
luaL_addstring[-?, +?, m] void luaL_addstring (luaL_Buffer *B, const char *s); Adds the zero-terminated
Page 6 of 7