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

lua_isthread[-0, +0, –] int lua_isthread (lua_State *L, int index); Returns 1 if the value at the given

2025-01-10 15:47:30
lua_getlocal
  • References/Lua/Lua/API/The Debug Interface

lua_getlocal[-0, +(0|1), –] const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n); Gets information

2025-01-10 15:47:30
coroutine.wrap()
  • References/Lua/Lua/Standard Libraries/Coroutine Manipulation

coroutine.wrap (f) Creates a new coroutine, with body f. f must be a function. Returns a function that resumes the coroutine each time it is called.

2025-01-10 15:47:30
tonumber()
  • References/Lua/Lua/Standard Libraries/Basic Functions

tonumber (e [, base]) When called with no base, tonumber tries to convert its argument to a number. If the argument is already a number or a string convertible

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

luaL_newlibtable[-0, +1, m] void luaL_newlibtable (lua_State *L, const luaL_Reg l[]); Creates

2025-01-10 15:47:30
coroutine.yield()
  • References/Lua/Lua/Standard Libraries/Coroutine Manipulation

coroutine.yield (···) Suspends the execution of the calling coroutine. Any arguments to yield are passed as extra results to resume.

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

luaL_newlib[-0, +1, m] void luaL_newlib (lua_State *L, const luaL_Reg l[]); Creates a new table

2025-01-10 15:47:30
utf8.len()
  • References/Lua/Lua/Standard Libraries/UTF-8 Support

utf8.len (s [, i [, j]])sijij

2025-01-10 15:47:30
Local Declarations
  • References/Lua/Lua/Language/Statements

3.3.7 – Local Declarations Local variables can be declared anywhere inside a block. The declaration can include an initial assignment: stat ::= local

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

2.5.2 – Weak Tables A weak table is a table whose elements are weak references. A weak reference is ignored by the garbage collector. In other words, if the only references

2025-01-10 15:47:30