lua_register
  • References/Lua/Lua/API/Functions and Types

lua_register[-0, +0, e] void lua_register (lua_State *L, const char *name, lua_CFunction f); Sets

2025-01-10 15:47:30
table.sort()
  • References/Lua/Lua/Standard Libraries/Table Manipulation

table.sort (list [, comp]) Sorts list elements in a given order, in-place, from list[1] to list[#list]. If comp is given, then

2025-01-10 15:47:30
lua_newstate
  • References/Lua/Lua/API/Functions and Types

lua_newstate[-0, +0, –] lua_State *lua_newstate (lua_Alloc f, void *ud); Creates a new thread running in

2025-01-10 15:47:30
Garbage-Collection Metamethods
  • References/Lua/Lua/Basic Concepts/Garbage Collection

2.5.1 – Garbage-Collection Metamethods You can set garbage-collector metamethods for tables and, using the C API, for full userdata (see

2025-01-10 15:47:30
luaL_error
  • References/Lua/Lua/Auxiliary Library/Functions and Types

luaL_error[-0, +0, v] int luaL_error (lua_State *L, const char *fmt, ...); Raises an error. The

2025-01-10 15:47:30
lua_Reader
  • References/Lua/Lua/API/Functions and Types

lua_Reader typedef const char * (*lua_Reader) (lua_State *L, void *data,

2025-01-10 15:47:30
lua_pushcclosure
  • References/Lua/Lua/API/Functions and Types

lua_pushcclosure[-n, +1, m] void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); Pushes

2025-01-10 15:47:30
lua_newuserdata
  • References/Lua/Lua/API/Functions and Types

lua_newuserdata[-0, +1, m] void *lua_newuserdata (lua_State *L, size_t size); This function allocates

2025-01-10 15:47:30
string.pack()
  • References/Lua/Lua/Standard Libraries/String Manipulation

string.pack (fmt, v1, v2, ···) Returns a binary string containing the values v1, v2, etc. packed (that is, serialized in binary form) according to the

2025-01-10 15:47:30
lua_rawgeti
  • References/Lua/Lua/API/Functions and Types

lua_rawgeti[-0, +1, –] int lua_rawgeti (lua_State *L, int index, lua_Integer n); Pushes onto the stack

2025-01-10 15:47:30