package vendor:lua/5.1

⌘K
Ctrl+K
or
/

    Overview

    Bindings for Lua 5.1.

    Index

    Variables (1)
    Procedures (155)
    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

    CFunction ¶

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

    ** Type for C functions registered with Lua

    Related Procedures With Parameters

    Matching Procedures (1)

    Chunkreader ¶

    Chunkreader :: Reader

    Chunkwriter ¶

    Chunkwriter :: Writer

    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) 
    	currentline:     i32,
    	// (l) 
    	nups:            i32,
    	// (u) number of upvalues 
    	linedefined:     i32,
    	// (S) 
    	lastlinedefined: i32,
    	// (S) 
    	short_src:       [60]u8 `fmt:"s"`,
    	// private part 
    	i_ci:            i32,
    }
     

    activation record

    Related Procedures With Parameters

    GCWhat ¶

    GCWhat :: enum i32 {
    	STOP       = 0, 
    	RESTART    = 1, 
    	COLLECT    = 2, 
    	COUNT      = 3, 
    	COUNTB     = 4, 
    	STEP       = 5, 
    	SETPAUSE   = 6, 
    	SETSTEPMUL = 7, 
    }

    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, 
    	TAILRET = 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

    L_Buffer ¶

    L_Buffer :: struct {
    	p:      [^]u8,
    	// buffer address 
    	lvl:    i32,
    	// number of strings in the stack (level) 
    	L:      ^State,
    	buffer: [512]u8,
    }

    Related Procedures With Parameters

    L_Reg ¶

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

    Related Procedures With Parameters

    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

    Writer ¶

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

    Constants

    AUTHORS ¶

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

    COLIBNAME ¶

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

    ENVIRONINDEX ¶

    ENVIRONINDEX :: -10001

    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

    GCRESTART ¶

    GCRESTART :: GCWhat.RESTART

    GCSETPAUSE ¶

    GCSETPAUSE :: GCWhat.SETPAUSE

    GCSETSTEPMUL ¶

    GCSETSTEPMUL :: GCWhat.SETSTEPMUL

    GCSTEP ¶

    GCSTEP :: GCWhat.STEP

    GCSTOP ¶

    GCSTOP :: GCWhat.STOP

    GLOBALSINDEX ¶

    GLOBALSINDEX :: -10002

    HOOKCALL ¶

    HOOKCALL :: HookEvent.CALL

    HOOKCOUNT ¶

    HOOKCOUNT :: HookEvent.COUNT

    HOOKLINE ¶

    HOOKLINE :: HookEvent.LINE

    HOOKRET ¶

    HOOKRET :: HookEvent.RET

    HOOKTAILRET ¶

    HOOKTAILRET :: HookEvent.TAILRET

    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.

    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(512 when ODIN_OS == .Windows else 8192 when ODIN_OS == .Linux else 1024)
     

    @@ LUAL_BUFFERSIZE is the buffer size used by the lauxlib buffer system. ** In Lua 5.1 it is the C library's BUFSIZ, and it has to match the value the Lua library was compiled with: ** 512 with MSVC, 8192 with glibc, 1024 with the BSDs, macOS and musl.

    MASKCALL ¶

    MASKCALL :: HookMask{.CALL}

    MASKCOUNT ¶

    MASKCOUNT :: HookMask{.COUNT}

    MASKLINE ¶

    MASKLINE :: HookMask{.LINE}

    MASKRET ¶

    MASKRET :: HookMask{.RET}

    MAXALIGNVAL ¶

    MAXALIGNVAL :: max(align_of(Number), align_of(f64), align_of(rawptr), align_of(Integer), align_of(c.long))

    MAXSTACK ¶

    MAXSTACK :: 1000000
     

    @@ LUAI_MAXSTACK limits the size of the Lua stack. ** CHANGE it if you need a different limit. This limit is arbitrary; ** its only purpose is to stop Lua from consuming unlimited stack ** space (and to reserve some numbers for pseudo-indices). ** (It must fit into max(size_t)/32.)

    MINSTACK ¶

    MINSTACK :: 20
     

    minimum Lua stack available to a C function

    MULTRET ¶

    MULTRET :: -1
     

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

    NOREF ¶

    NOREF :: -2
     

    predefined references

    OK ¶

    OK :: Status.OK
     

    thread status

    OPEQ ¶

    OPEQ :: CompareOp.EQ

    OPLE ¶

    OPLE :: CompareOp.LE

    OPLT ¶

    OPLT :: CompareOp.LT

    REGISTRYINDEX ¶

    REGISTRYINDEX :: -10000

    RELEASE ¶

    RELEASE :: "Lua 5.1.5"

    SIGNATURE ¶

    SIGNATURE :: "\x1bLua"
     

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

    STRLIBNAME ¶

    STRLIBNAME :: "string"

    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

    VERSION ¶

    VERSION :: "Lua 5.1"

    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_addlstring ¶
    C · luaL_addlstringSource · lua.odin:550

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

    L_addsize ¶

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

    L_addstring ¶
    C · luaL_addstringSource · lua.odin:551

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

    L_addvalue ¶
    C · luaL_addvalueSource · lua.odin:552

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

    L_argcheck ¶

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

    L_argerror ¶
    C · luaL_argerrorSource · lua.odin:476

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

    L_buffinit ¶
    C · luaL_buffinitSource · lua.odin:548

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

    L_callmeta ¶
    C · luaL_callmetaSource · lua.odin:474

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

    L_checkany ¶
    C · luaL_checkanySource · lua.odin:490

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

    L_checkinteger ¶
    C · luaL_checkintegerSource · lua.odin:484

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

    L_checknumber ¶
    C · luaL_checknumberSource · lua.odin:481

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

    L_checkoption ¶
    C · luaL_checkoptionSource · lua.odin:498

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

    L_checkstack ¶
    C · luaL_checkstackSource · lua.odin:488

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

    L_checkstring ¶

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

    L_checktype ¶
    C · luaL_checktypeSource · lua.odin:489

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

    L_checkudata ¶
    C · luaL_checkudataSource · lua.odin:493

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

    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:496

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

    L_findtable ¶
    C · luaL_findtableSource · lua.odin:513

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

    L_getmetafield ¶
    C · luaL_getmetafieldSource · lua.odin:473

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

    L_getmetatable ¶

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

    L_gsub ¶

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

    L_loadbuffer ¶
    C · luaL_loadbufferSource · lua.odin:506

    L_loadbuffer :: proc "c" (L: ^State, buff: [^]u8, sz: uint, name: cstring) -> Status ---

    L_loadfile ¶
    C · luaL_loadfileSource · lua.odin:504

    L_loadfile :: proc "c" (L: ^State, filename: cstring) -> Status ---

    L_loadstring ¶
    C · luaL_loadstringSource · lua.odin:507

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

    L_newmetatable ¶
    C · luaL_newmetatableSource · lua.odin:492

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

    L_newstate ¶
    C · luaL_newstateSource · lua.odin:509

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

    L_openlib ¶
    C · luaL_openlibSource · lua.odin:471

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

    L_openlibs ¶
    C · luaL_openlibsSource · lua.odin:452

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

    L_opt ¶

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

    L_optinteger ¶
    C · luaL_optintegerSource · lua.odin:485

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

    L_optnumber ¶
    C · luaL_optnumberSource · lua.odin:482

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

    L_optstring ¶

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

    L_prepbuffer ¶
    C · luaL_prepbufferSource · lua.odin:549

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

    L_pushresult ¶
    C · luaL_pushresultSource · lua.odin:553

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

    L_ref ¶

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

    L_register ¶
    C · luaL_registerSource · lua.odin:472

    L_register :: proc "c" (L: ^State, libname: cstring, l: ^L_Reg) ---

    L_typename ¶

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

    L_typerror ¶
    C · luaL_typerrorSource · lua.odin:475

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

    L_unref ¶
    C · luaL_unrefSource · lua.odin:502

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

    L_where ¶
    C · luaL_whereSource · lua.odin:495

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

    atpanic ¶
    C · lua_atpanicSource · lua.odin:274

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

    call ¶

    call :: proc "c" (L: ^State, nargs, nresults: i32) ---

    checkstack ¶
    C · lua_checkstackSource · lua.odin:287

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

    close ¶

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

    concat ¶
    C · lua_concatSource · lua.odin:401

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

    cpcall ¶
    C · lua_cpcallSource · lua.odin:367

    cpcall :: proc "c" (L: ^State, func: CFunction, ud: rawptr) -> i32 ---

    createtable ¶
    C · lua_createtableSource · lua.odin:342

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

    dump ¶

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

    equal ¶

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

    error ¶

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

    gc ¶

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

    getallocf ¶
    C · lua_getallocfSource · lua.odin:403

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

    getfenv ¶
    C · lua_getfenvSource · lua.odin:345

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

    getfield ¶
    C · lua_getfieldSource · lua.odin:338

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

    getgccount ¶

    getgccount :: proc "c" (L: ^State) -> i32 {…}

    getglobal ¶

    getglobal :: proc "c" (L: ^State, s: cstring) {…}

    gethook ¶
    C · lua_gethookSource · lua.odin:420

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

    gethookcount ¶
    C · lua_gethookcountSource · lua.odin:422

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

    gethookmask ¶
    C · lua_gethookmaskSource · lua.odin:421

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

    getinfo ¶
    C · lua_getinfoSource · lua.odin:413

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

    getlocal ¶
    C · lua_getlocalSource · lua.odin:414

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

    getmetatable ¶
    C · lua_getmetatableSource · lua.odin:344

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

    getref ¶

    getref :: proc "c" (L: ^State, ref: i32) {…}

    getregistry ¶

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

    getstack ¶
    C · lua_getstackSource · lua.odin:412

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

    gettable ¶
    C · lua_gettableSource · lua.odin:337

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

    gettop ¶
    C · lua_gettopSource · lua.odin:281

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

    getupvalue ¶
    C · lua_getupvalueSource · lua.odin:416

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

    insert ¶
    C · lua_insertSource · lua.odin:285

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

    isboolean ¶

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

    iscfunction ¶
    C · lua_iscfunctionSource · lua.odin:298

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

    isfunction ¶

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

    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:296

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

    isstring ¶
    C · lua_isstringSource · lua.odin:297

    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:299

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

    lessthan ¶
    C · lua_lessthanSource · lua.odin:305

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

    load ¶

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

    newstate ¶
    C · lua_newstateSource · lua.odin:270

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

    newtable ¶

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

    newthread ¶
    C · lua_newthreadSource · lua.odin:272

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

    newuserdata ¶
    C · lua_newuserdataSource · lua.odin:343

    newuserdata :: proc "c" (L: ^State, sz: uint) -> rawptr ---

    next ¶

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

    objlen ¶
    C · lua_objlenSource · lua.odin:311

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

    open_base ¶
    C · luaopen_baseSource · lua.odin:441

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

    open_debug ¶
    C · luaopen_debugSource · lua.odin:447

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

    open_io ¶
    C · luaopen_ioSource · lua.odin:443

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

    open_math ¶
    C · luaopen_mathSource · lua.odin:446

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

    open_os ¶
    C · luaopen_osSource · lua.odin:444

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

    open_package ¶
    C · luaopen_packageSource · lua.odin:448

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

    open_string ¶
    C · luaopen_stringSource · lua.odin:445

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

    open_table ¶
    C · luaopen_tableSource · lua.odin:442

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

    pcall ¶

    pcall :: proc "c" (L: ^State, nargs, nresults: i32, errfunc: i32) -> i32 ---

    pop ¶

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

    pushboolean ¶
    C · lua_pushbooleanSource · lua.odin:329

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

    pushcclosure ¶
    C · lua_pushcclosureSource · lua.odin:328

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

    pushcfunction ¶

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

    pushfstring ¶
    C · lua_pushfstringSource · lua.odin:327

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

    pushinteger ¶
    C · lua_pushintegerSource · lua.odin:323

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

    pushlightuserdata ¶
    C · lua_pushlightuserdataSource · lua.odin:330

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

    pushlstring ¶
    C · lua_pushlstringSource · lua.odin:324

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

    pushnil ¶
    C · lua_pushnilSource · lua.odin:321

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

    pushnumber ¶
    C · lua_pushnumberSource · lua.odin:322

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

    pushstring ¶
    C · lua_pushstringSource · lua.odin:325

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

    pushthread ¶
    C · lua_pushthreadSource · lua.odin:331

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

    pushvalue ¶
    C · lua_pushvalueSource · lua.odin:283

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

    pushvfstring ¶
    C · lua_pushvfstringSource · lua.odin:326

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

    rawequal ¶
    C · lua_rawequalSource · lua.odin:304

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

    rawget ¶
    C · lua_rawgetSource · lua.odin:339

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

    rawgeti ¶
    C · lua_rawgetiSource · lua.odin:340

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

    rawset ¶
    C · lua_rawsetSource · lua.odin:354

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

    rawseti ¶
    C · lua_rawsetiSource · lua.odin:355

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

    ref ¶

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

    register ¶

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

    remove ¶
    C · lua_removeSource · lua.odin:284

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

    replace ¶
    C · lua_replaceSource · lua.odin:286

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

    resume ¶
    C · lua_resumeSource · lua.odin:380

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

    setallocf ¶
    C · lua_setallocfSource · lua.odin:404

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

    setfenv ¶
    C · lua_setfenvSource · lua.odin:357

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

    setfield ¶
    C · lua_setfieldSource · lua.odin:353

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

    setglobal ¶

    setglobal :: proc "c" (L: ^State, s: cstring) {…}

    sethook ¶
    C · lua_sethookSource · lua.odin:419

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

    setlevel ¶
    C · lua_setlevelSource · lua.odin:560

    setlevel :: proc "c" (from, to: ^State) ---
     

    hack

    setlocal ¶
    C · lua_setlocalSource · lua.odin:415

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

    setmetatable ¶
    C · lua_setmetatableSource · lua.odin:356

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

    settable ¶
    C · lua_settableSource · lua.odin:352

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

    settop ¶
    C · lua_settopSource · lua.odin:282

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

    setupvalue ¶
    C · lua_setupvalueSource · lua.odin:417

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

    status ¶
    C · lua_statusSource · lua.odin:381

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

    strlen ¶

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

    toboolean ¶
    C · lua_tobooleanSource · lua.odin:309

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

    tocfunction ¶
    C · lua_tocfunctionSource · lua.odin:312

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

    tointeger ¶
    C · lua_tointegerSource · lua.odin:308

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

    tolstring ¶
    C · lua_tolstringSource · lua.odin:310

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

    tonumber ¶
    C · lua_tonumberSource · lua.odin:307

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

    topointer ¶
    C · lua_topointerSource · lua.odin:315

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

    tostring ¶

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

    tothread ¶
    C · lua_tothreadSource · lua.odin:314

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

    touserdata ¶
    C · lua_touserdataSource · lua.odin:313

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

    type ¶

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

    typename ¶
    C · lua_typenameSource · lua.odin:301

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

    unref ¶

    unref :: proc "c" (L: ^State, ref: i32) {…}

    xmove ¶

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

    yield ¶

    yield :: proc "c" (L: ^State, nresults: i32) -> 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