package vendor:lua/5.5

⌘K
Ctrl+K
or
/

    Overview

    Bindings for Lua 5.5.

    Index

    Constants (113)
    Variables (1)
    Procedures (196)
    Procedure Groups (0)

    This section is empty.

    `#config` values (2)

    Types

    Alloc ¶

    Alloc :: proc "c" (ud: rawptr, ptr: rawptr, osize, nsize: uint) -> rawptr
     

    ** Type for memory-allocation functions

    Related Procedures With Parameters

    ArithOp ¶

    ArithOp :: enum i32 {
    	ADD  = 0,  // ORDER TM, ORDER OP
    	SUB  = 1, 
    	MUL  = 2, 
    	MOD  = 3, 
    	POW  = 4, 
    	DIV  = 5, 
    	IDIV = 6, 
    	BAND = 7, 
    	BOR  = 8, 
    	BXOR = 9, 
    	SHL  = 10, 
    	SHR  = 11, 
    	UNM  = 12, 
    	BNOT = 13, 
    }

    Related Constants

    CFunction ¶

    CFunction :: proc "c" (L: ^State) -> i32
     

    ** Type for C functions registered with Lua

    Related Procedures With Parameters

    CompareOp ¶

    CompareOp :: enum i32 {
    	EQ = 0, 
    	LT = 1, 
    	LE = 2, 
    }

    Related Constants

    Debug ¶

    Debug :: struct {
    	event:           HookEvent,
    	name:            cstring,
    	// (n) 
    	namewhat:        cstring,
    	// (n) 'global', 'local', 'field', 'method' 
    	what:            cstring,
    	// (S) 'Lua', 'C', 'main', 'tail' 
    	source:          cstring,
    	// (S) 
    	srclen:          uint,
    	// (S) 
    	currentline:     i32,
    	// (l) 
    	linedefined:     i32,
    	// (S) 
    	lastlinedefined: i32,
    	// (S) 
    	nups:            u8,
    	// (u) number of upvalues 
    	nparams:         u8,
    	// (u) number of parameters 
    	isvararg:        bool,
    	// (u) 
    	extraargs:       u8,
    	// (t) number of extra arguments 
    	istailcall:      bool,
    	// (t) 
    	ftransfer:       i32,
    	// (r) index of first value transferred 
    	ntransfer:       i32,
    	// (r) number of transferred values 
    	short_src:       [60]u8 `fmt:"s"`,
    	// private part 
    	i_ci:            rawptr,
    }
     

    activation record

    Related Procedures With Parameters

    GCParam ¶

    GCParam :: enum i32 {
    	// parameters for generational mode 
    	MINORMUL   = 0, // control minor collections
    	MAJORMINOR = 1, // control shift major->minor
    	MINORMAJOR = 2, // control shift minor->major
    	// parameters for incremental mode 
    	PAUSE      = 3, // size of pause between successive GCs
    	STEPMUL    = 4, // GC "speed"
    	STEPSIZE   = 5, // GC granularity
    }
     

    ** garbage-collection parameters, the first argument of gc(L, .PARAM, ...)

    Related Constants

    GCWhat ¶

    GCWhat :: enum i32 {
    	STOP      = 0, 
    	RESTART   = 1, 
    	COLLECT   = 2, 
    	COUNT     = 3, 
    	COUNTB    = 4, 
    	STEP      = 5, 
    	ISRUNNING = 6, 
    	GEN       = 7, 
    	INC       = 8, 
    	PARAM     = 9, 
    }

    Related Constants

    Hook ¶

    Hook :: proc "c" (L: ^State, ar: ^Debug)
     

    Functions to be called by the debugger in specific events

    HookEvent ¶

    HookEvent :: enum i32 {
    	CALL     = 0, 
    	RET      = 1, 
    	LINE     = 2, 
    	COUNT    = 3, 
    	TAILCALL = 4, 
    }

    Related Constants

    HookMask ¶

    HookMask :: distinct bit_set[HookEvent; i32]
     

    ** Event masks

    Related Constants

    Integer ¶

    Integer :: distinct i64
     

    type for integer functions

    Related Procedures With Parameters

    Related Procedures With Returns

    KContext ¶

    KContext :: distinct int
     

    type for continuation-function contexts

    Related Procedures With Parameters

    KFunction ¶

    KFunction :: proc "c" (L: ^State, status: i32, ctx: KContext) -> i32
     

    ** Type for continuation functions

    Related Procedures With Parameters

    L_Buffer ¶

    L_Buffer :: struct #align (MAXALIGN) {
    	b:    [^]u8,
    	// buffer address 
    	size: uint,
    	// buffer size 
    	n:    uint,
    	// number of characters in buffer 
    	L:    ^State,
    	init: struct #raw_union {
    		n: Number,
    		u: f64,
    		s: rawptr,
    		i: Integer,
    		l: i32,
    		b: [1024]u8,
    	},
    }

    Related Procedures With Parameters

    L_Reg ¶

    L_Reg :: struct {
    	name: cstring,
    	func: CFunction,
    }

    Number ¶

    Number :: distinct f64
     

    type of numbers in Lua

    Related Procedures With Parameters

    Related Procedures With Returns

    Reader ¶

    Reader :: proc "c" (L: ^State, ud: rawptr, sz: ^uint) -> cstring
     

    ** Type for functions that read/write blocks when loading/dumping Lua chunks

    State ¶

    State :: struct {}
     

    opaque data type

    Related Procedures With Returns

    Status ¶

    Status :: enum i32 {
    	OK        = 0, 
    	YIELD     = 1, 
    	ERRRUN    = 2, 
    	ERRSYNTAX = 3, 
    	ERRMEM    = 4, 
    	ERRERR    = 5, 
    	ERRFILE   = 6, 
    }

    Related Procedures With Returns

    Related Constants

    Type ¶

    Type :: enum i32 {
    	NONE          = -1, 
    	NIL           = 0, 
    	BOOLEAN       = 1, 
    	LIGHTUSERDATA = 2, 
    	NUMBER        = 3, 
    	STRING        = 4, 
    	TABLE         = 5, 
    	FUNCTION      = 6, 
    	USERDATA      = 7, 
    	THREAD        = 8, 
    }

    Related Constants

    Unsigned ¶

    Unsigned :: distinct u64
     

    unsigned integer type

    WarnFunction ¶

    WarnFunction :: proc "c" (ud: rawptr, msg: rawptr, tocont: i32)
     

    ** Type for warning functions

    Writer ¶

    Writer :: proc "c" (L: ^State, p: rawptr, sz: ^uint, ud: rawptr) -> i32

    Constants

    AUTHORS ¶

    AUTHORS :: "R. Ierusalimschy, L. H. de Figueiredo, W. Celes"

    COLIBK ¶

    COLIBK :: LOADLIBK << 1

    COLIBNAME ¶

    COLIBNAME :: "coroutine"
    COPYRIGHT :: RELEASE + "  Copyright (C) 1994-2026 Lua.org, PUC-Rio"

    DBLIBK ¶

    DBLIBK :: COLIBK << 1

    ERRERR ¶

    ERRERR :: Status.ERRERR

    ERRFILE ¶

    ERRFILE :: Status.ERRFILE

    ERRMEM ¶

    ERRMEM :: Status.ERRMEM

    ERRRUN ¶

    ERRRUN :: Status.ERRRUN

    ERRSYNTAX ¶

    ERRSYNTAX :: Status.ERRSYNTAX

    EXTRASPACE ¶

    EXTRASPACE :: size_of(rawptr)
     

    @@ LUA_EXTRASPACE defines the size of a raw memory area associated with ** a Lua state with very fast access. ** CHANGE it if you need a different size.

    GCCOLLECT ¶

    GCCOLLECT :: GCWhat.COLLECT

    GCCOUNT ¶

    GCCOUNT :: GCWhat.COUNT

    GCCOUNTB ¶

    GCCOUNTB :: GCWhat.COUNTB

    GCGEN ¶

    GCGEN :: GCWhat.GEN

    GCINC ¶

    GCINC :: GCWhat.INC

    GCISRUNNING ¶

    GCISRUNNING :: GCWhat.ISRUNNING

    GCPARAM ¶

    GCPARAM :: GCWhat.PARAM

    GCPMAJORMINOR ¶

    GCPMAJORMINOR :: GCParam.MAJORMINOR

    GCPMINORMAJOR ¶

    GCPMINORMAJOR :: GCParam.MINORMAJOR

    GCPMINORMUL ¶

    GCPMINORMUL :: GCParam.MINORMUL

    GCPN ¶

    GCPN :: 6
     

    number of parameters

    GCPPAUSE ¶

    GCPPAUSE :: GCParam.PAUSE

    GCPSTEPMUL ¶

    GCPSTEPMUL :: GCParam.STEPMUL

    GCPSTEPSIZE ¶

    GCPSTEPSIZE :: GCParam.STEPSIZE

    GCRESTART ¶

    GCRESTART :: GCWhat.RESTART

    GCSTEP ¶

    GCSTEP :: GCWhat.STEP

    GCSTOP ¶

    GCSTOP :: GCWhat.STOP

    HOOKCALL ¶

    HOOKCALL :: HookEvent.CALL

    HOOKCOUNT ¶

    HOOKCOUNT :: HookEvent.COUNT

    HOOKLINE ¶

    HOOKLINE :: HookEvent.LINE

    HOOKRET ¶

    HOOKRET :: HookEvent.RET

    HOOKTAILCALL ¶

    HOOKTAILCALL :: HookEvent.TAILCALL

    IDSIZE ¶

    IDSIZE :: 60
     

    @@ LUA_IDSIZE gives the maximum size for the description of the source @@ of a function in debug information. ** CHANGE it if you want a different size.

    IOLIBK ¶

    IOLIBK :: DBLIBK << 1

    LOADED_TABLE ¶

    LOADED_TABLE :: "_LOADED"
     

    key, in the registry, for table of loaded modules

    LOADLIBK ¶

    LOADLIBK :: GLIBK << 1

    LOADLIBNAME ¶

    LOADLIBNAME :: "package"

    LUA_SHARED ¶

    LUA_SHARED :: #config(LUA_SHARED, false)
    -define:LUA_SHARED=false

    LUA_WASM_LIB ¶

    LUA_WASM_LIB :: #config(LUA_WASM_LIB, "env.o")
    -define:LUA_WASM_LIB="env.o"

    L_BUFFERSIZE ¶

    L_BUFFERSIZE: i32 : c.int(16 * size_of(rawptr) * size_of(Number))
     

    @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system.

    L_NUMSIZES ¶

    L_NUMSIZES :: size_of(Integer) * 16 + size_of(Number)

    MASKCALL ¶

    MASKCALL :: HookMask{.CALL}

    MASKCOUNT ¶

    MASKCOUNT :: HookMask{.COUNT}

    MASKLINE ¶

    MASKLINE :: HookMask{.LINE}

    MASKRET ¶

    MASKRET :: HookMask{.RET}

    MATHLIBK ¶

    MATHLIBK :: IOLIBK << 1

    MAXALIGN ¶

    MAXALIGN :: 8 when (ODIN_OS == .Windows || (ODIN_OS == .Darwin && ODIN_ARCH == .arm64)) else 16
     

    alignment of long double, the strictest member of LUAI_MAXALIGN (it is 8 on Windows and on Apple arm64)

    MINSTACK ¶

    MINSTACK :: 20
     

    minimum Lua stack available to a C function

    MULTRET ¶

    MULTRET :: -1
     

    option for multiple returns in 'lua_pcall' and 'lua_call'

    N2SBUFFSZ ¶

    N2SBUFFSZ :: 64
     

    size of the buffer numbertocstring needs

    NOREF ¶

    NOREF :: -2
     

    predefined references

    OK ¶

    OK :: Status.OK
     

    thread status

    OPADD ¶

    OPADD :: ArithOp.ADD

    OPBAND ¶

    OPBAND :: ArithOp.BAND

    OPBNOT ¶

    OPBNOT :: ArithOp.BNOT

    OPBOR ¶

    OPBOR :: ArithOp.BOR

    OPBXOR ¶

    OPBXOR :: ArithOp.BXOR

    OPDIV ¶

    OPDIV :: ArithOp.DIV

    OPEQ ¶

    OPEQ :: CompareOp.EQ

    OPIDIV ¶

    OPIDIV :: ArithOp.IDIV

    OPLE ¶

    OPLE :: CompareOp.LE

    OPLT ¶

    OPLT :: CompareOp.LT

    OPMOD ¶

    OPMOD :: ArithOp.MOD

    OPMUL ¶

    OPMUL :: ArithOp.MUL

    OPPOW ¶

    OPPOW :: ArithOp.POW

    OPSHL ¶

    OPSHL :: ArithOp.SHL

    OPSHR ¶

    OPSHR :: ArithOp.SHR

    OPSUB ¶

    OPSUB :: ArithOp.SUB

    OPUNM ¶

    OPUNM :: ArithOp.UNM

    OSLIBK ¶

    OSLIBK :: MATHLIBK << 1

    PRELOAD_TABLE ¶

    PRELOAD_TABLE :: "_PRELOAD"
     

    key, in the registry, for table of preloaded loaders

    REGISTRYINDEX ¶

    REGISTRYINDEX: i32 : -(max(c.int) / 2 + 1000)
     

    ** The stack size is limited to INT_MAX/2; some free empty space is kept ** after that to help overflow detection.

    RELEASE ¶

    RELEASE :: VERSION + "." + VERSION_RELEASE

    RIDX_GLOBALS ¶

    RIDX_GLOBALS :: 2
     

    predefined values in the registry (index 1 is reserved for the reference mechanism)

    SIGNATURE ¶

    SIGNATURE :: "\x1bLua"
     

    mark for precompiled code ('<esc>Lua')

    STRLIBK ¶

    STRLIBK :: OSLIBK << 1

    STRLIBNAME ¶

    STRLIBNAME :: "string"

    TABLIBK ¶

    TABLIBK :: STRLIBK << 1

    TABLIBNAME ¶

    TABLIBNAME :: "table"

    TBOOLEAN ¶

    TBOOLEAN :: Type.BOOLEAN

    TFUNCTION ¶

    TFUNCTION :: Type.FUNCTION

    TLIGHTUSERDATA ¶

    TLIGHTUSERDATA :: Type.LIGHTUSERDATA

    TNONE ¶

    TNONE :: Type.NONE

    TNUMBER ¶

    TNUMBER :: Type.NUMBER

    TSTRING ¶

    TSTRING :: Type.STRING

    TTABLE ¶

    TTABLE :: Type.TABLE

    TTHREAD ¶

    TTHREAD :: Type.THREAD

    TUSERDATA ¶

    TUSERDATA :: Type.USERDATA

    UTF8LIBK ¶

    UTF8LIBK :: TABLIBK << 1

    VERSION ¶

    VERSION :: "Lua " + VERSION_MAJOR + "." + VERSION_MINOR

    VERSION_NUM ¶

    VERSION_NUM :: VERSION_MAJOR_N * 100 + VERSION_MINOR_N

    VERSION_RELEASE_NUM ¶

    VERSION_RELEASE_NUM :: VERSION_NUM * 100 + VERSION_RELEASE_N

    VERSUFFIX ¶

    VERSUFFIX :: "_" + VERSION_MAJOR + "_" + VERSION_MINOR
     

    version suffix for environment variable names

    YIELD ¶

    YIELD :: Status.YIELD

    Variables

    ident ¶

    ident: [^]u8
     

    TODO(bill): is this correct?

    Procedures

    L_addchar ¶

    L_addchar :: proc "c" (B: ^L_Buffer, c: u8) {…}

    L_addgsub ¶
    C · luaL_addgsubSource · lua.odin:698

    L_addgsub :: proc "c" (b: ^L_Buffer, s, p, r: cstring) ---

    L_addlstring ¶
    C · luaL_addlstringSource · lua.odin:762

    L_addlstring :: proc "c" (B: ^L_Buffer, s: cstring, l: uint) ---

    L_addsize ¶

    L_addsize :: proc "c" (B: ^L_Buffer, s: uint) -> uint {…}

    L_addstring ¶
    C · luaL_addstringSource · lua.odin:763

    L_addstring :: proc "c" (B: ^L_Buffer, s: cstring) ---

    L_addvalue ¶
    C · luaL_addvalueSource · lua.odin:764

    L_addvalue :: proc "c" (B: ^L_Buffer) ---

    L_alloc ¶
    C · luaL_allocSource · lua.odin:693

    L_alloc :: proc "c" (ud: rawptr, ptr: rawptr, osize, nsize: uint) -> rawptr ---
     

    the default allocator used by L_newstate, usable as the f of newstate

    L_argcheck ¶

    L_argcheck :: proc "c" (L: ^State, cond: bool, arg: i32, extramsg: cstring) {…}

    L_argerror ¶
    C · luaL_argerrorSource · lua.odin:650

    L_argerror :: proc "c" (L: ^State, arg: i32, extramsg: cstring) -> i32 ---

    L_argexpected ¶

    L_argexpected :: proc "c" (L: ^State, cond: bool, arg: i32, tname: cstring) {…}

    L_buffaddr ¶

    L_buffaddr :: proc "c" (bf: ^L_Buffer) -> [^]u8 {…}

    L_buffinit ¶
    C · luaL_buffinitSource · lua.odin:760

    L_buffinit :: proc "c" (L: ^State, B: ^L_Buffer) ---

    L_buffinitsize ¶
    C · luaL_buffinitsizeSource · lua.odin:767

    L_buffinitsize :: proc "c" (L: ^State, B: ^L_Buffer, sz: uint) -> [^]u8 ---

    L_bufflen ¶

    L_bufflen :: proc "c" (bf: ^L_Buffer) -> uint {…}

    L_buffsub ¶

    L_buffsub :: proc "c" (B: ^L_Buffer, s: uint) -> uint {…}

    L_callmeta ¶
    C · luaL_callmetaSource · lua.odin:647

    L_callmeta :: proc "c" (L: ^State, obj: i32, e: cstring) -> i32 ---

    L_checkany ¶
    C · luaL_checkanySource · lua.odin:664

    L_checkany :: proc "c" (L: ^State, arg: i32) ---

    L_checkinteger ¶
    C · luaL_checkintegerSource · lua.odin:659

    L_checkinteger :: proc "c" (L: ^State, arg: i32) -> Integer ---

    L_checknumber ¶
    C · luaL_checknumberSource · lua.odin:656

    L_checknumber :: proc "c" (L: ^State, arg: i32) -> Number ---

    L_checkoption ¶
    C · luaL_checkoptionSource · lua.odin:674

    L_checkoption :: proc "c" (L: ^State, arg: i32, def: cstring, lst: [^]cstring) -> i32 ---

    L_checkstack ¶
    C · luaL_checkstackSource · lua.odin:662

    L_checkstack :: proc "c" (L: ^State, sz: i32, msg: cstring) ---

    L_checkstring ¶

    @(link_name="luaL_checklstring")
    L_checkstring :: proc "c" (L: ^State, arg: i32, l: ^uint = nil) -> cstring ---

    L_checktype ¶
    C · luaL_checktypeSource · lua.odin:663

    L_checktype :: proc "c" (L: ^State, arg: i32, t: i32) ---

    L_checkudata ¶
    C · luaL_checkudataSource · lua.odin:669

    L_checkudata :: proc "c" (L: ^State, ud: i32, tname: cstring) -> rawptr ---

    L_checkversion ¶

    @(link_name="luaL_checkversion_")
    L_checkversion :: proc "c" (L: ^State, ver: Number = VERSION_NUM, sz: uint = L_NUMSIZES) ---

    L_dofile ¶

    L_dofile :: proc "c" (L: ^State, s: cstring) -> i32 {…}

    L_dostring ¶

    L_dostring :: proc "c" (L: ^State, s: cstring) -> i32 {…}

    L_error ¶
    C · luaL_errorSource · lua.odin:672

    L_error :: proc "c" (L: ^State, fmt: cstring, args: ..any) -> Status ---

    L_execresult ¶
    C · luaL_execresultSource · lua.odin:677

    L_execresult :: proc "c" (L: ^State, stat: i32) -> i32 ---

    L_fileresult ¶
    C · luaL_fileresultSource · lua.odin:676

    L_fileresult :: proc "c" (L: ^State, stat: i32, fname: cstring) -> i32 ---

    L_getmetafield ¶
    C · luaL_getmetafieldSource · lua.odin:646

    L_getmetafield :: proc "c" (L: ^State, obj: i32, e: cstring) -> i32 ---

    L_getmetatable ¶

    L_getmetatable :: proc "c" (L: ^State, n: cstring) -> i32 {…}

    L_getsubtable ¶
    C · luaL_getsubtableSource · lua.odin:703

    L_getsubtable :: proc "c" (L: ^State, idx: i32, fname: cstring) -> i32 ---

    L_gsub ¶

    L_gsub :: proc "c" (L: ^State, s, p, r: cstring) -> cstring ---

    L_len ¶

    L_len :: proc "c" (L: ^State, idx: i32) -> Integer ---

    L_loadbuffer ¶

    @(link_name="luaL_loadbufferx")
    L_loadbuffer :: proc "c" (
    	L:    ^State, 
    	buff: [^]u8, 
    	sz:   uint, 
    	name: cstring, 
    	mode: cstring = nil, 
    ) -> Status ---

    L_loadfile ¶

    @(link_name="luaL_loadfilex")
    L_loadfile :: proc "c" (L: ^State, filename: cstring, mode: cstring = nil) -> Status ---

    L_loadstring ¶
    C · luaL_loadstringSource · lua.odin:688

    L_loadstring :: proc "c" (L: ^State, s: cstring) -> Status ---

    L_makeseed ¶
    C · luaL_makeseedSource · lua.odin:694

    L_makeseed :: proc "c" (L: ^State) -> u32 ---

    L_newlib ¶

    L_newlib :: proc(L: ^State, l: []L_Reg) {…}

    L_newlibtable ¶

    L_newlibtable :: proc "c" (L: ^State, l: []L_Reg) {…}

    L_newmetatable ¶
    C · luaL_newmetatableSource · lua.odin:666

    L_newmetatable :: proc "c" (L: ^State, tname: cstring) -> i32 ---

    L_newstate ¶
    C · luaL_newstateSource · lua.odin:690

    L_newstate :: proc "c" () -> ^State ---

    L_openlibs ¶

    L_openlibs :: proc "c" (L: ^State) {…}
     

    open all libraries

    L_openselectedlibs ¶
    C · luaL_openselectedlibsSource · lua.odin:596

    L_openselectedlibs :: proc "c" (L: ^State, load: i32, preload: i32) ---

    L_opt ¶

    L_opt :: proc "c" (L: ^State, f: $F, n: i32, d: $T) -> T {…}

    L_optinteger ¶
    C · luaL_optintegerSource · lua.odin:660

    L_optinteger :: proc "c" (L: ^State, arg: i32, def: Integer) -> Integer ---

    L_optnumber ¶
    C · luaL_optnumberSource · lua.odin:657

    L_optnumber :: proc "c" (L: ^State, arg: i32, def: Number) -> Number ---

    L_optstring ¶

    @(link_name="luaL_optlstring")
    L_optstring :: proc "c" (L: ^State, arg: i32, def: cstring, l: ^uint = nil) -> cstring ---

    L_prepbuffer ¶

    L_prepbuffer :: proc "c" (B: ^L_Buffer) -> [^]u8 {…}

    L_prepbuffsize ¶
    C · luaL_prepbuffsizeSource · lua.odin:761

    L_prepbuffsize :: proc "c" (B: ^L_Buffer, sz: uint) -> [^]u8 ---

    L_pushresult ¶
    C · luaL_pushresultSource · lua.odin:765

    L_pushresult :: proc "c" (B: ^L_Buffer) ---

    L_pushresultsize ¶
    C · luaL_pushresultsizeSource · lua.odin:766

    L_pushresultsize :: proc "c" (B: ^L_Buffer, sz: uint) ---

    L_ref ¶

    L_ref :: proc "c" (L: ^State, t: i32) -> i32 ---

    L_requiref ¶
    C · luaL_requirefSource · lua.odin:707

    L_requiref :: proc "c" (L: ^State, modname: cstring, openf: CFunction, glb: i32) ---

    L_setfuncs ¶
    C · luaL_setfuncsSource · lua.odin:701

    L_setfuncs :: proc "c" (L: ^State, l: [^]L_Reg, nup: i32) ---

    L_setmetatable ¶
    C · luaL_setmetatableSource · lua.odin:667

    L_setmetatable :: proc "c" (L: ^State, tname: cstring) ---

    L_testudata ¶
    C · luaL_testudataSource · lua.odin:668

    L_testudata :: proc "c" (L: ^State, ud: i32, tname: cstring) -> rawptr ---

    L_tostring ¶

    @(link_name="luaL_tolstring")
    L_tostring :: proc "c" (L: ^State, idx: i32, len: ^uint = nil) -> cstring ---

    L_traceback ¶
    C · luaL_tracebackSource · lua.odin:705

    L_traceback :: proc "c" (L: ^State, L1: ^State, msg: cstring, level: i32) ---

    L_typeerror ¶
    C · luaL_typeerrorSource · lua.odin:651

    L_typeerror :: proc "c" (L: ^State, arg: i32, tname: cstring) -> i32 ---

    L_typename ¶

    L_typename :: proc "c" (L: ^State, i: i32) -> cstring {…}

    L_unref ¶
    C · luaL_unrefSource · lua.odin:681

    L_unref :: proc "c" (L: ^State, t: i32, ref: i32) ---

    L_where ¶
    C · luaL_whereSource · lua.odin:671

    L_where :: proc "c" (L: ^State, lvl: i32) ---

    absindex ¶
    C · lua_absindexSource · lua.odin:382

    absindex :: proc "c" (L: ^State, idx: i32) -> i32 ---

    arith ¶

    arith :: proc "c" (L: ^State, op: ArithOp) ---

    atpanic ¶
    C · lua_atpanicSource · lua.odin:373

    atpanic :: proc "c" (L: ^State, panicf: CFunction) -> CFunction ---

    call ¶

    @(link_name="lua_callk")
    call :: proc "c" (L: ^State, nargs, nresults: i32, ctx: KContext = 0, k: KFunction = nil) ---

    checkstack ¶
    C · lua_checkstackSource · lua.odin:388

    checkstack :: proc "c" (L: ^State, n: i32) -> i32 ---

    close ¶

    close :: proc "c" (L: ^State) ---

    closeslot ¶
    C · lua_closeslotSource · lua.odin:539

    closeslot :: proc "c" (L: ^State, idx: i32) ---

    closethread ¶
    C · lua_closethreadSource · lua.odin:371

    closethread :: proc "c" (L: ^State, from: ^State) -> Status ---

    compare ¶
    C · lua_compareSource · lua.odin:423

    compare :: proc "c" (L: ^State, idx1, idx2: i32, op: CompareOp) -> b32 ---

    concat ¶
    C · lua_concatSource · lua.odin:529

    concat :: proc "c" (L: ^State, n: i32) ---

    copy ¶

    copy :: proc "c" (L: ^State, fromidx, toidx: i32) ---

    createtable ¶
    C · lua_createtableSource · lua.odin:454

    createtable :: proc "c" (L: ^State, narr, nrec: i32) ---

    dump ¶

    dump :: proc "c" (L: ^State, writer: Writer, data: rawptr, strip: b32) -> Status ---

    error ¶

    error :: proc "c" (L: ^State) -> Status ---

    gc ¶

    gc :: proc "c" (L: ^State, what: GCWhat, args: ..any) -> i32 ---

    getallocf ¶
    C · lua_getallocfSource · lua.odin:535

    getallocf :: proc "c" (L: ^State, ud: ^rawptr) -> Alloc ---

    getextraspace ¶

    getextraspace :: proc "c" (L: ^State) -> rawptr {…}

    getfield ¶
    C · lua_getfieldSource · lua.odin:448

    getfield :: proc "c" (L: ^State, idx: i32, k: cstring) -> i32 ---

    getglobal ¶
    C · lua_getglobalSource · lua.odin:446

    getglobal :: proc "c" (L: ^State, name: cstring) -> i32 ---

    gethook ¶
    C · lua_gethookSource · lua.odin:558

    gethook :: proc "c" (L: ^State) -> Hook ---

    gethookcount ¶
    C · lua_gethookcountSource · lua.odin:560

    gethookcount :: proc "c" (L: ^State) -> i32 ---

    gethookmask ¶
    C · lua_gethookmaskSource · lua.odin:559

    gethookmask :: proc "c" (L: ^State) -> HookMask ---

    geti ¶

    geti :: proc "c" (L: ^State, idx: i32, n: Integer) -> i32 ---

    getinfo ¶
    C · lua_getinfoSource · lua.odin:548

    getinfo :: proc "c" (L: ^State, what: cstring, ar: ^Debug) -> i32 ---

    getiuservalue ¶
    C · lua_getiuservalueSource · lua.odin:457

    getiuservalue :: proc "c" (L: ^State, idx: i32, n: i32) -> i32 ---

    getlocal ¶
    C · lua_getlocalSource · lua.odin:549

    getlocal :: proc "c" (L: ^State, ar: ^Debug, n: i32) -> cstring ---

    getmetatable ¶
    C · lua_getmetatableSource · lua.odin:456

    getmetatable :: proc "c" (L: ^State, objindex: i32) -> i32 ---

    getstack ¶
    C · lua_getstackSource · lua.odin:547

    getstack :: proc "c" (L: ^State, level: i32, ar: ^Debug) -> i32 ---

    gettable ¶
    C · lua_gettableSource · lua.odin:447

    gettable :: proc "c" (L: ^State, idx: i32) -> i32 ---

    gettop ¶
    C · lua_gettopSource · lua.odin:383

    gettop :: proc "c" (L: ^State) -> i32 ---

    getupvalue ¶
    C · lua_getupvalueSource · lua.odin:551

    getupvalue :: proc "c" (L: ^State, funcindex: i32, n: i32) -> cstring ---

    getuservalue ¶

    getuservalue :: proc "c" (L: ^State, idx: i32) -> i32 {…}

    insert ¶

    insert :: proc "c" (L: ^State, idx: i32) {…}

    isboolean ¶

    isboolean :: proc "c" (L: ^State, n: i32) -> bool {…}

    iscfunction ¶
    C · lua_iscfunctionSource · lua.odin:399

    iscfunction :: proc "c" (L: ^State, idx: i32) -> b32 ---

    isfunction ¶

    isfunction :: proc "c" (L: ^State, n: i32) -> bool {…}

    isinteger ¶
    C · lua_isintegerSource · lua.odin:400

    isinteger :: proc "c" (L: ^State, idx: i32) -> b32 ---

    islightuserdata ¶

    islightuserdata :: proc "c" (L: ^State, n: i32) -> bool {…}

    isnil ¶

    isnil :: proc "c" (L: ^State, n: i32) -> bool {…}

    isnone ¶

    isnone :: proc "c" (L: ^State, n: i32) -> bool {…}

    isnoneornil ¶

    isnoneornil :: proc "c" (L: ^State, n: i32) -> bool {…}

    isnumber ¶
    C · lua_isnumberSource · lua.odin:397

    isnumber :: proc "c" (L: ^State, idx: i32) -> b32 ---

    isstring ¶
    C · lua_isstringSource · lua.odin:398

    isstring :: proc "c" (L: ^State, idx: i32) -> b32 ---

    istable ¶

    istable :: proc "c" (L: ^State, n: i32) -> bool {…}

    isthread ¶

    isthread :: proc "c" (L: ^State, n: i32) -> bool {…}

    isuserdata ¶
    C · lua_isuserdataSource · lua.odin:401

    isuserdata :: proc "c" (L: ^State, idx: i32) -> b32 ---

    isyieldable ¶
    C · lua_isyieldableSource · lua.odin:501

    isyieldable :: proc "c" (L: ^State) -> b32 ---

    len ¶

    len :: proc "c" (L: ^State, idx: i32) ---

    load ¶

    load :: proc "c" (L: ^State, reader: Reader, dt: rawptr, chunkname, mode: cstring) -> Status ---

    newstate ¶
    C · lua_newstateSource · lua.odin:368

    newstate :: proc "c" (f: Alloc, ud: rawptr, seed: u32) -> ^State ---

    newtable ¶

    newtable :: proc "c" (L: ^State) {…}

    newthread ¶
    C · lua_newthreadSource · lua.odin:370

    newthread :: proc "c" (L: ^State) -> ^State ---

    newuserdata ¶

    newuserdata :: proc "c" (L: ^State, s: uint) -> rawptr {…}

    newuserdatauv ¶
    C · lua_newuserdatauvSource · lua.odin:455

    newuserdatauv :: proc "c" (L: ^State, sz: uint, nuvalue: i32) -> rawptr ---

    next ¶

    next :: proc "c" (L: ^State, idx: i32) -> i32 ---

    numbertocstring ¶
    C · lua_numbertocstringSource · lua.odin:532

    numbertocstring :: proc "c" (L: ^State, idx: i32, buff: [^]u8) -> u32 ---

    open_base ¶
    C · luaopen_baseSource · lua.odin:583

    open_base :: proc "c" (L: ^State) -> i32 ---

    open_coroutine ¶
    C · luaopen_coroutineSource · lua.odin:584

    open_coroutine :: proc "c" (L: ^State) -> i32 ---

    open_debug ¶
    C · luaopen_debugSource · lua.odin:591

    open_debug :: proc "c" (L: ^State) -> i32 ---

    open_io ¶
    C · luaopen_ioSource · lua.odin:586

    open_io :: proc "c" (L: ^State) -> i32 ---

    open_math ¶
    C · luaopen_mathSource · lua.odin:590

    open_math :: proc "c" (L: ^State) -> i32 ---

    open_os ¶
    C · luaopen_osSource · lua.odin:587

    open_os :: proc "c" (L: ^State) -> i32 ---

    open_package ¶
    C · luaopen_packageSource · lua.odin:592

    open_package :: proc "c" (L: ^State) -> i32 ---

    open_string ¶
    C · luaopen_stringSource · lua.odin:588

    open_string :: proc "c" (L: ^State) -> i32 ---

    open_table ¶
    C · luaopen_tableSource · lua.odin:585

    open_table :: proc "c" (L: ^State) -> i32 ---

    open_utf8 ¶
    C · luaopen_utf8Source · lua.odin:589

    open_utf8 :: proc "c" (L: ^State) -> i32 ---

    pcall ¶

    @(link_name="lua_pcallk")
    pcall :: proc "c" (
    	L:               ^State, 
    	nargs, nresults: i32, 
    	errfunc:         i32, 
    	ctx:             KContext = 0, 
    	k:               KFunction = nil, 
    ) -> i32 ---

    pop ¶

    pop :: proc "c" (L: ^State, n: i32) {…}

    pushboolean ¶
    C · lua_pushbooleanSource · lua.odin:438

    pushboolean :: proc "c" (L: ^State, b: b32) ---

    pushcclosure ¶
    C · lua_pushcclosureSource · lua.odin:437

    pushcclosure :: proc "c" (L: ^State, fn: CFunction, n: i32) ---

    pushcfunction ¶

    pushcfunction :: proc "c" (L: ^State, f: CFunction) {…}

    pushexternalstring ¶
    C · lua_pushexternalstringSource · lua.odin:434

    pushexternalstring :: proc "c" (
    	L:      ^State, 
    	s:      cstring, 
    	len:    uint, 
    	falloc: Alloc, 
    	ud:     rawptr, 
    ) -> cstring ---

    pushfstring ¶
    C · lua_pushfstringSource · lua.odin:436

    pushfstring :: proc "c" (L: ^State, fmt: cstring, args: ..any) -> cstring ---

    pushglobaltable ¶

    pushglobaltable :: proc "c" (L: ^State) {…}

    pushinteger ¶
    C · lua_pushintegerSource · lua.odin:431

    pushinteger :: proc "c" (L: ^State, n: Integer) ---

    pushlightuserdata ¶
    C · lua_pushlightuserdataSource · lua.odin:439

    pushlightuserdata :: proc "c" (L: ^State, p: rawptr) ---

    pushlstring ¶
    C · lua_pushlstringSource · lua.odin:432

    pushlstring :: proc "c" (L: ^State, s: cstring, len: uint) -> cstring ---

    pushnil ¶
    C · lua_pushnilSource · lua.odin:429

    pushnil :: proc "c" (L: ^State) ---

    pushnumber ¶
    C · lua_pushnumberSource · lua.odin:430

    pushnumber :: proc "c" (L: ^State, n: Number) ---

    pushstring ¶
    C · lua_pushstringSource · lua.odin:433

    pushstring :: proc "c" (L: ^State, s: cstring) -> cstring ---

    pushthread ¶
    C · lua_pushthreadSource · lua.odin:440

    pushthread :: proc "c" (L: ^State) -> Status ---

    pushvalue ¶
    C · lua_pushvalueSource · lua.odin:385

    pushvalue :: proc "c" (L: ^State, idx: i32) ---

    pushvfstring ¶
    C · lua_pushvfstringSource · lua.odin:435

    pushvfstring :: proc "c" (L: ^State, fmt: cstring, argp: intrinsics.c_va_list) -> cstring ---

    rawequal ¶
    C · lua_rawequalSource · lua.odin:422

    rawequal :: proc "c" (L: ^State, idx1, idx2: i32) -> b32 ---

    rawget ¶
    C · lua_rawgetSource · lua.odin:450

    rawget :: proc "c" (L: ^State, idx: i32) -> i32 ---

    rawgeti ¶
    C · lua_rawgetiSource · lua.odin:451

    rawgeti :: proc "c" (L: ^State, idx: i32, n: Integer) -> i32 ---

    rawgetp ¶
    C · lua_rawgetpSource · lua.odin:452

    rawgetp :: proc "c" (L: ^State, idx: i32, p: rawptr) -> i32 ---

    rawlen ¶
    C · lua_rawlenSource · lua.odin:411

    rawlen :: proc "c" (L: ^State, idx: i32) -> Unsigned ---

    rawset ¶
    C · lua_rawsetSource · lua.odin:468

    rawset :: proc "c" (L: ^State, idx: i32) ---

    rawseti ¶
    C · lua_rawsetiSource · lua.odin:469

    rawseti :: proc "c" (L: ^State, idx: i32, n: Integer) ---

    rawsetp ¶
    C · lua_rawsetpSource · lua.odin:470

    rawsetp :: proc "c" (L: ^State, idx: i32, p: rawptr) ---

    register ¶

    register :: proc "c" (L: ^State, n: cstring, f: CFunction) {…}

    remove ¶

    remove :: proc "c" (L: ^State, idx: i32) {…}

    replace ¶

    replace :: proc "c" (L: ^State, idx: i32) {…}

    resetthread ¶

    resetthread :: proc "c" (L: ^State) -> Status {…}

    resume ¶
    C · lua_resumeSource · lua.odin:499

    resume :: proc "c" (L: ^State, from: ^State, narg: i32, nres: ^i32) -> Status ---

    rotate ¶
    C · lua_rotateSource · lua.odin:386

    rotate :: proc "c" (L: ^State, idx: i32, n: i32) ---

    setallocf ¶
    C · lua_setallocfSource · lua.odin:536

    setallocf :: proc "c" (L: ^State, f: Alloc, ud: rawptr) ---

    setfield ¶
    C · lua_setfieldSource · lua.odin:466

    setfield :: proc "c" (L: ^State, idx: i32, k: cstring) ---

    setglobal ¶
    C · lua_setglobalSource · lua.odin:464

    setglobal :: proc "c" (L: ^State, name: cstring) ---

    sethook ¶
    C · lua_sethookSource · lua.odin:557

    sethook :: proc "c" (L: ^State, func: Hook, mask: HookMask, count: i32) ---

    seti ¶

    seti :: proc "c" (L: ^State, idx: i32, n: Integer) ---

    setiuservalue ¶
    C · lua_setiuservalueSource · lua.odin:472

    setiuservalue :: proc "c" (L: ^State, idx: i32, n: i32) -> i32 ---

    setlocal ¶
    C · lua_setlocalSource · lua.odin:550

    setlocal :: proc "c" (L: ^State, ar: ^Debug, n: i32) -> cstring ---

    setmetatable ¶
    C · lua_setmetatableSource · lua.odin:471

    setmetatable :: proc "c" (L: ^State, objindex: i32) -> i32 ---

    settable ¶
    C · lua_settableSource · lua.odin:465

    settable :: proc "c" (L: ^State, idx: i32) ---

    settop ¶
    C · lua_settopSource · lua.odin:384

    settop :: proc "c" (L: ^State, idx: i32) ---

    setupvalue ¶
    C · lua_setupvalueSource · lua.odin:552

    setupvalue :: proc "c" (L: ^State, funcindex: i32, n: i32) -> cstring ---

    setuservalue ¶

    setuservalue :: proc "c" (L: ^State, idx: i32) -> i32 {…}

    setwarnf ¶
    C · lua_setwarnfSource · lua.odin:508

    setwarnf :: proc "c" (L: ^State, f: WarnFunction, ud: rawptr) ---

    status ¶
    C · lua_statusSource · lua.odin:500

    status :: proc "c" (L: ^State) -> Status ---

    stringtonumber ¶
    C · lua_stringtonumberSource · lua.odin:533

    stringtonumber :: proc "c" (L: ^State, s: cstring) -> uint ---

    toboolean ¶
    C · lua_tobooleanSource · lua.odin:409

    toboolean :: proc "c" (L: ^State, idx: i32) -> b32 ---

    tocfunction ¶
    C · lua_tocfunctionSource · lua.odin:412

    tocfunction :: proc "c" (L: ^State, idx: i32) -> CFunction ---

    toclose ¶
    C · lua_tocloseSource · lua.odin:538

    toclose :: proc "c" (L: ^State, idx: i32) ---

    tointeger ¶

    @(link_name="lua_tointegerx")
    tointeger :: proc "c" (L: ^State, idx: i32, isnum: ^b32 = nil) -> Integer ---

    tolstring ¶
    C · lua_tolstringSource · lua.odin:410

    tolstring :: proc "c" (L: ^State, idx: i32, len: ^uint) -> cstring ---

    tonumber ¶

    @(link_name="lua_tonumberx")
    tonumber :: proc "c" (L: ^State, idx: i32, isnum: ^b32 = nil) -> Number ---

    topointer ¶
    C · lua_topointerSource · lua.odin:415

    topointer :: proc "c" (L: ^State, idx: i32) -> rawptr ---

    tostring ¶

    tostring :: proc "c" (L: ^State, i: i32) -> cstring {…}

    tothread ¶
    C · lua_tothreadSource · lua.odin:414

    tothread :: proc "c" (L: ^State, idx: i32) -> ^State ---

    touserdata ¶
    C · lua_touserdataSource · lua.odin:413

    touserdata :: proc "c" (L: ^State, idx: i32) -> rawptr ---

    type ¶

    type :: proc "c" (L: ^State, idx: i32) -> Type ---

    typename ¶
    C · lua_typenameSource · lua.odin:403

    typename :: proc "c" (L: ^State, tp: Type) -> cstring ---

    upvalueid ¶
    C · lua_upvalueidSource · lua.odin:554

    upvalueid :: proc "c" (L: ^State, fidx, n: i32) -> rawptr ---

    upvaluejoin ¶
    C · lua_upvaluejoinSource · lua.odin:555

    upvaluejoin :: proc "c" (L: ^State, fidx1, n1, fidx2, n2: i32) ---

    version ¶
    C · lua_versionSource · lua.odin:375

    version :: proc "c" (L: ^State) -> Number ---

    warning ¶
    C · lua_warningSource · lua.odin:509

    warning :: proc "c" (L: ^State, msg: cstring, tocont: b32) ---

    xmove ¶

    xmove :: proc "c" (from, to: ^State, n: i32) ---

    yield ¶

    @(link_name="lua_yieldk")
    yield :: proc "c" (L: ^State, nresults: i32, ctx: KContext = 0, k: KFunction = nil) -> Status ---

    Procedure Groups

    This section is empty.

    `#config` values

    Source Files

    Generation Information

    Generated with odin version dev-2026-11 (vendor "odin") Windows_amd64 @ 2026-11-28 21:05:09.772358800 +0000 UTC