Arithmetic Operators
  • References/Lua/Lua/Language/Expressions

3.4.1 – Arithmetic Operators Lua supports the following arithmetic operators: +: addition -: subtraction *:

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

luaL_setfuncs[-nup, +0, m] void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup); Registers

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

dofile ([filename])dofilestdindofiledofile

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
Table Constructors
  • References/Lua/Lua/Language/Expressions

3.4.9 – Table Constructors Table constructors are expressions that create tables. Every time a constructor is evaluated, a new table is created. A constructor can be used to create an empty

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

luaL_checknumber[-0, +0, v] lua_Number luaL_checknumber (lua_State *L, int arg); Checks whether

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

lua_close[-0, +0, –] void lua_close (lua_State *L); Destroys all objects in the given Lua state (calling

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

lua_gc[-0, +0, m] int lua_gc (lua_State *L, int what, int data); Controls the garbage collector

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

string.upper (s)

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