package vendor:lua/5.4
Index
Constants (92)
- AUTHORS
- COLIBNAME
- COPYRIGHT
- DBLIBNAME
- ERRERR
- ERRFILE
- ERRMEM
- ERRRUN
- ERRSYNTAX
- EXTRASPACE
- GCCOLLECT
- GCCOUNT
- GCCOUNTB
- GCGEN
- GCINC
- GCISRUNNING
- GCRESTART
- GCSETPAUSE
- GCSETSTEPMUL
- GCSTEP
- GCSTOP
- GNAME
- HOOKCALL
- HOOKCOUNT
- HOOKLINE
- HOOKRET
- HOOKTAILCALL
- IDSIZE
- IOLIBNAME
- LOADED_TABLE
- LOADLIBNAME
- L_BUFFERSIZE
- L_NUMSIZES
- MASKCALL
- MASKCOUNT
- MASKLINE
- MASKRET
- MATHLIBNAME
- MAXALIGNVAL
- MAXSTACK
- MINSTACK
- MULTRET
- NOREF
- NUMTYPES
- OK
- OPADD
- OPBAND
- OPBNOT
- OPBOR
- OPBXOR
- OPDIV
- OPEQ
- OPIDIV
- OPLE
- OPLT
- OPMOD
- OPMUL
- OPPOW
- OPSHL
- OPSHR
- OPSUB
- OPUNM
- OSLIBNAME
- PRELOAD_TABLE
- REFNIL
- REGISTRYINDEX
- RELEASE
- RIDX_GLOBALS
- RIDX_LAST
- RIDX_MAINTHREAD
- SIGNATURE
- STRLIBNAME
- TABLIBNAME
- TBOOLEAN
- TFUNCTION
- TLIGHTUSERDATA
- TNIL
- TNONE
- TNUMBER
- TSTRING
- TTABLE
- TTHREAD
- TUSERDATA
- UTF8LIBNAME
- VERSION
- VERSION_MAJOR
- VERSION_MINOR
- VERSION_NUM
- VERSION_RELEASE
- VERSION_RELEASE_NUM
- VERSUFFIX
- YIELD
Variables (1)
Procedures (190)
- L_addchar
- L_addgsub
- L_addlstring
- L_addsize
- L_addstring
- L_addvalue
- L_argcheck
- L_argerror
- L_argexpected
- L_buffaddr
- L_buffinit
- L_buffinitsize
- L_bufflen
- L_buffsub
- L_callmeta
- L_checkany
- L_checkinteger
- L_checknumber
- L_checkoption
- L_checkstack
- L_checkstring
- L_checktype
- L_checkudata
- L_checkversion
- L_dofile
- L_dostring
- L_error
- L_execresult
- L_fileresult
- L_getmetafield
- L_getmetatable
- L_getsubtable
- L_gsub
- L_len
- L_loadbuffer
- L_loadfile
- L_loadstring
- L_newlib
- L_newlibtable
- L_newmetatable
- L_newstate
- L_openlibs
- L_opt
- L_optinteger
- L_optnumber
- L_optstring
- L_prepbuffer
- L_prepbuffsize
- L_pushresult
- L_pushresultsize
- L_ref
- L_requiref
- L_setfuncs
- L_setmetatable
- L_testudata
- L_tostring
- L_traceback
- L_typeerror
- L_typename
- L_unref
- L_where
- absindex
- arith
- atpanic
- call
- checkstack
- close
- compare
- concat
- copy
- createtable
- dump
- error
- gc
- getallocf
- getextraspace
- getfield
- getglobal
- gethook
- gethookcount
- gethookmask
- geti
- getinfo
- getiuservalue
- getlocal
- getmetatable
- getstack
- gettable
- gettop
- getupvalue
- getuservalue
- insert
- isboolean
- iscfunction
- isfunction
- isinteger
- islightuserdata
- isnil
- isnone
- isnoneornil
- isnumber
- isstring
- istable
- isthread
- isuserdata
- isyieldable
- len
- load
- newstate
- newtable
- newthread
- newuserdata
- newuserdatauv
- next
- open_base
- open_coroutine
- open_debug
- open_io
- open_math
- open_os
- open_package
- open_string
- open_table
- open_utf8
- pcall
- pop
- pushboolean
- pushcclosure
- pushcfunction
- pushfail
- pushfstring
- pushglobaltable
- pushinteger
- pushlightuserdata
- pushliteral
- pushlstring
- pushnil
- pushnumber
- pushstring
- pushthread
- pushvalue
- pushvfstring
- rawequal
- rawget
- rawgeti
- rawgetp
- rawlen
- rawset
- rawseti
- rawsetp
- register
- remove
- replace
- resetthread
- resume
- rotate
- setallocf
- setcstacklimit
- setfield
- setglobal
- sethook
- seti
- setiuservalue
- setlocal
- setmetatable
- settable
- settop
- setupvalue
- setuservalue
- setwarnf
- status
- stringtonumber
- toboolean
- tocfunction
- toclose
- tointeger
- tolstring
- tonumber
- topointer
- tostring
- tothread
- touserdata
- type
- typename
- upvalueid
- upvaluejoin
- version
- warning
- xmove
- yield
Procedure Groups (0)
This section is empty.
Types
Alloc ¶
Alloc :: proc "c" (ud: rawptr, ptr: rawptr, osize, nsize: uint) -> rawptr
** Type for memory-allocation functions
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, }
CompareOp ¶
CompareOp :: enum i32 { EQ = 0, LT = 1, LE = 2, }
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) istailcall: bool, // (t) ftransfer: u16, // (r) index of first value transferred ntransfer: u16, // (r) number of transferred values short_src: [60]u8 "fmt:\"s\"", // private part i_ci: rawptr, }
activation record
GCWhat ¶
GCWhat :: enum i32 { STOP = 0, RESTART = 1, COLLECT = 2, COUNT = 3, COUNTB = 4, STEP = 5, SETPAUSE = 6, SETSTEPMUL = 7, ISRUNNING = 9, GEN = 10, INC = 11, }
Hook ¶
Functions to be called by the debugger in specific events
HookEvent ¶
HookEvent :: enum i32 { CALL = 0, RET = 1, LINE = 2, COUNT = 3, TAILCALL = 4, }
KFunction ¶
** Type for continuation functions
Reader ¶
Reader :: proc "c" (L: ^State, ud: rawptr, sz: ^uint) -> cstring
** Type for functions that read/write blocks when loading/dumping Lua chunks
Status ¶
Status :: enum i32 { OK = 0, YIELD = 1, ERRRUN = 2, ERRSYNTAX = 3, ERRMEM = 4, ERRERR = 5, ERRFILE = 6, }
Type ¶
Type :: enum i32 { NONE = -1, NIL = 0, BOOLEAN = 1, LIGHTUSERDATA = 2, NUMBER = 3, STRING = 4, TABLE = 5, FUNCTION = 6, USERDATA = 7, THREAD = 8, }
WarnFunction ¶
WarnFunction :: proc "c" (ud: rawptr, msg: rawptr, tocont: i32)
** Type for warning functions
Constants
COLIBNAME ¶
COLIBNAME :: "coroutine"
COPYRIGHT ¶
COPYRIGHT :: RELEASE + " Copyright (C) 1994-2020 Lua.org, PUC-Rio"
DBLIBNAME ¶
DBLIBNAME :: "debug"
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
GCCOUNTB ¶
GCCOUNTB :: GCWhat.COUNTB
GCISRUNNING ¶
GCISRUNNING :: GCWhat.ISRUNNING
GCRESTART ¶
GCRESTART :: GCWhat.RESTART
GCSETPAUSE ¶
GCSETPAUSE :: GCWhat.SETPAUSE
GCSETSTEPMUL ¶
GCSETSTEPMUL :: GCWhat.SETSTEPMUL
HOOKCALL ¶
HOOKCALL :: HookEvent.CALL
HOOKCOUNT ¶
HOOKCOUNT :: HookEvent.COUNT
HOOKLINE ¶
HOOKLINE :: HookEvent.LINE
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.
IOLIBNAME ¶
IOLIBNAME :: "io"
LOADLIBNAME ¶
LOADLIBNAME :: "package"
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}
MATHLIBNAME ¶
MATHLIBNAME :: "math"
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.)
NUMTYPES ¶
NUMTYPES :: 9
OSLIBNAME ¶
OSLIBNAME :: "os"
REGISTRYINDEX ¶
REGISTRYINDEX :: -MAXSTACK - 1000
RIDX_GLOBALS ¶
RIDX_GLOBALS :: 2
RIDX_LAST ¶
RIDX_LAST :: RIDX_GLOBALS
STRLIBNAME ¶
STRLIBNAME :: "string"
TABLIBNAME ¶
TABLIBNAME :: "table"
TBOOLEAN ¶
TBOOLEAN :: Type.BOOLEAN
TFUNCTION ¶
TFUNCTION :: Type.FUNCTION
TLIGHTUSERDATA ¶
TLIGHTUSERDATA :: Type.LIGHTUSERDATA
TUSERDATA ¶
TUSERDATA :: Type.USERDATA
UTF8LIBNAME ¶
UTF8LIBNAME :: "utf8"
VERSION_MAJOR ¶
VERSION_MAJOR :: "5"
VERSION_MINOR ¶
VERSION_MINOR :: "4"
VERSION_NUM ¶
VERSION_NUM :: 504
VERSION_RELEASE ¶
VERSION_RELEASE :: "2"
VERSION_RELEASE_NUM ¶
VERSION_RELEASE_NUM :: VERSION_NUM * 100 + 0
VERSUFFIX ¶
VERSUFFIX :: "_" + VERSION_MAJOR + "_" + VERSION_MINOR
version suffix for environment variable names
Variables
Procedures
L_addchar ¶
L_addchar :: proc "c" (B: ^L_Buffer, c: u8) {…}
L_addgsub ¶
L_addgsub :: proc "c" (b: ^L_Buffer, s, p, r: cstring) ---
L_addlstring ¶
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 ¶
L_addstring :: proc "c" (B: ^L_Buffer, s: cstring) ---
L_addvalue ¶
L_addvalue :: proc "c" (B: ^L_Buffer) ---
L_argcheck ¶
L_argcheck :: proc "c" (L: ^State, cond: bool, arg: i32, extramsg: cstring) {…}
L_argerror ¶
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_bufflen ¶
L_bufflen :: proc "c" (bf: ^L_Buffer) -> uint {…}
L_buffsub ¶
L_buffsub :: proc "c" (B: ^L_Buffer, s: uint) -> uint {…}
L_callmeta ¶
L_callmeta :: proc "c" (L: ^State, obj: i32, e: cstring) -> i32 ---
L_checkany ¶
L_checkany :: proc "c" (L: ^State, arg: i32) ---
L_checkoption ¶
L_checkoption :: proc "c" (L: ^State, arg: i32, def: cstring, lst: [^]cstring) -> i32 ---
L_checkstack ¶
L_checkstack :: proc "c" (L: ^State, sz: i32, msg: cstring) ---
L_checkstring ¶
L_checkstring :: proc "c" (L: ^State, arg: i32, l: ^uint = nil) -> cstring ---
L_checktype ¶
L_checktype :: proc "c" (L: ^State, arg: i32, t: i32) ---
L_checkudata ¶
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_execresult ¶
L_execresult :: proc "c" (L: ^State, stat: i32) -> i32 ---
L_fileresult ¶
L_fileresult :: proc "c" (L: ^State, stat: i32, fname: cstring) -> i32 ---
L_getmetafield ¶
L_getmetafield :: proc "c" (L: ^State, obj: i32, e: cstring) -> i32 ---
L_getmetatable ¶
L_getmetatable :: proc "c" (L: ^State, n: cstring) -> i32 {…}
L_getsubtable ¶
L_getsubtable :: proc "c" (L: ^State, idx: i32, fname: cstring) -> i32 ---
L_newmetatable ¶
L_newmetatable :: proc "c" (L: ^State, tname: cstring) -> i32 ---
L_newstate ¶
L_newstate :: proc "c" () -> ^State ---
L_openlibs ¶
L_openlibs :: proc "c" (L: ^State) ---
L_optstring ¶
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 ¶
L_prepbuffsize :: proc "c" (B: ^L_Buffer, sz: uint) -> [^]u8 ---
L_pushresult ¶
L_pushresult :: proc "c" (B: ^L_Buffer) ---
L_pushresultsize ¶
L_pushresultsize :: proc "c" (B: ^L_Buffer, sz: uint) ---
L_setmetatable ¶
L_setmetatable :: proc "c" (L: ^State, tname: cstring) ---
L_testudata ¶
L_testudata :: proc "c" (L: ^State, ud: i32, tname: cstring) -> rawptr ---
L_tostring ¶
L_tostring :: proc "c" (L: ^State, idx: i32, len: ^uint) -> cstring ---
L_typeerror ¶
L_typeerror :: proc "c" (L: ^State, arg: i32, tname: cstring) -> i32 ---
L_typename ¶
L_typename :: proc "c" (L: ^State, i: i32) -> cstring {…}
absindex ¶
absindex :: proc "c" (L: ^State, idx: i32) -> i32 ---
checkstack ¶
checkstack :: proc "c" (L: ^State, n: i32) -> i32 ---
createtable ¶
createtable :: proc "c" (L: ^State, narr, nrec: i32) ---
getextraspace ¶
getextraspace :: proc "c" (L: ^State) -> rawptr {…}
getfield ¶
getfield :: proc "c" (L: ^State, idx: i32, k: cstring) -> i32 ---
getglobal ¶
getglobal :: proc "c" (L: ^State, name: cstring) -> i32 ---
gethookcount ¶
gethookcount :: proc "c" (L: ^State) -> i32 ---
getiuservalue ¶
getiuservalue :: proc "c" (L: ^State, idx: i32, n: i32) -> i32 ---
getmetatable ¶
getmetatable :: proc "c" (L: ^State, objindex: i32) -> i32 ---
gettable ¶
gettable :: proc "c" (L: ^State, idx: i32) -> i32 ---
getupvalue ¶
getupvalue :: proc "c" (L: ^State, funcindex: i32, n: i32) -> cstring ---
getuservalue ¶
getuservalue :: proc "c" (L: ^State, idx: i32) -> i32 {…}
isboolean ¶
isboolean :: proc "c" (L: ^State, n: i32) -> bool {…}
iscfunction ¶
iscfunction :: proc "c" (L: ^State, idx: i32) -> b32 ---
isfunction ¶
isfunction :: proc "c" (L: ^State, n: i32) -> bool {…}
isinteger ¶
isinteger :: proc "c" (L: ^State, idx: i32) -> b32 ---
islightuserdata ¶
islightuserdata :: proc "c" (L: ^State, n: i32) -> bool {…}
isnoneornil ¶
isnoneornil :: proc "c" (L: ^State, n: i32) -> bool {…}
isnumber ¶
isnumber :: proc "c" (L: ^State, idx: i32) -> b32 ---
isstring ¶
isstring :: proc "c" (L: ^State, idx: i32) -> b32 ---
isthread ¶
isthread :: proc "c" (L: ^State, n: i32) -> bool {…}
isuserdata ¶
isuserdata :: proc "c" (L: ^State, idx: i32) -> b32 ---
isyieldable ¶
isyieldable :: proc "c" (L: ^State) -> b32 ---
newtable ¶
newtable :: proc "c" (L: ^State) {…}
newuserdata ¶
newuserdata :: proc "c" (L: ^State, s: uint) -> rawptr {…}
newuserdatauv ¶
newuserdatauv :: proc "c" (L: ^State, sz: uint, nuvalue: i32) -> rawptr ---
open_base ¶
open_base :: proc "c" (L: ^State) -> i32 ---
open_coroutine ¶
open_coroutine :: proc "c" (L: ^State) -> i32 ---
open_debug ¶
open_debug :: proc "c" (L: ^State) -> i32 ---
open_math ¶
open_math :: proc "c" (L: ^State) -> i32 ---
open_package ¶
open_package :: proc "c" (L: ^State) -> i32 ---
open_string ¶
open_string :: proc "c" (L: ^State) -> i32 ---
open_table ¶
open_table :: proc "c" (L: ^State) -> i32 ---
open_utf8 ¶
open_utf8 :: proc "c" (L: ^State) -> i32 ---
pushboolean ¶
pushboolean :: proc "c" (L: ^State, b: b32) ---
pushfail ¶
pushfail :: pushnil
pushfstring ¶
pushfstring :: proc "c" (L: ^State, fmt: cstring, args: ..any) -> cstring ---
pushglobaltable ¶
pushglobaltable :: proc "c" (L: ^State) {…}
pushlightuserdata ¶
pushlightuserdata :: proc "c" (L: ^State, p: rawptr) ---
pushliteral ¶
pushliteral :: pushstring
pushlstring ¶
pushlstring :: proc "c" (L: ^State, s: cstring, len: uint) -> cstring ---
pushstring ¶
pushstring :: proc "c" (L: ^State, s: cstring) -> cstring ---
pushvalue ¶
pushvalue :: proc "c" (L: ^State, idx: i32) ---
rawequal ¶
rawequal :: proc "c" (L: ^State, idx1, idx2: i32) -> b32 ---
setcstacklimit ¶
setcstacklimit :: proc "c" (L: ^State, limit: u32) -> i32 ---
setfield ¶
setfield :: proc "c" (L: ^State, idx: i32, k: cstring) ---
setglobal ¶
setglobal :: proc "c" (L: ^State, name: cstring) ---
setiuservalue ¶
setiuservalue :: proc "c" (L: ^State, idx: i32, n: i32) -> i32 ---
setmetatable ¶
setmetatable :: proc "c" (L: ^State, objindex: i32) -> i32 ---
settable ¶
settable :: proc "c" (L: ^State, idx: i32) ---
setupvalue ¶
setupvalue :: proc "c" (L: ^State, funcindex: i32, n: i32) -> cstring ---
setuservalue ¶
setuservalue :: proc "c" (L: ^State, idx: i32) -> i32 {…}
setwarnf ¶
setwarnf :: proc "c" (L: ^State, f: WarnFunction, ud: rawptr) ---
stringtonumber ¶
stringtonumber :: proc "c" (L: ^State, s: cstring) -> uint ---
toboolean ¶
toboolean :: proc "c" (L: ^State, idx: i32) -> b32 ---
tolstring ¶
tolstring :: proc "c" (L: ^State, idx: i32, len: ^uint) -> cstring ---
topointer ¶
topointer :: proc "c" (L: ^State, idx: i32) -> rawptr ---
tostring ¶
tostring :: proc "c" (L: ^State, i: i32) -> cstring {…}
touserdata ¶
touserdata :: proc "c" (L: ^State, idx: i32) -> rawptr ---
upvalueid ¶
upvalueid :: proc "c" (L: ^State, fidx, n: i32) -> rawptr ---
upvaluejoin ¶
upvaluejoin :: proc "c" (L: ^State, fidx1, n1, fidx2, n2: i32) ---
Procedure Groups
This section is empty.
Source Files
Generation Information
Generated with odin version dev-2023-06 (vendor "odin") Windows_amd64 @ 2023-06-02 21:08:33.037212600 +0000 UTC