[..] Module – luajit
Module luajit provides bindings for the LuaJIT C library (2.1.1744318430)
#import "jc/ext/luajit";
Index
Constants (97)
- Integer
- LUAI_GCMUL
- LUAI_GCPAUSE
- LUAI_MAXCSTACK
- LUAI_MAXNUMBER2STR
- LUAI_MAXSTACK
- LUAJIT_COPYRIGHT
- LUAJIT_MODE_FLUSH
- LUAJIT_MODE_MASK
- LUAJIT_MODE_OFF
- LUAJIT_MODE_ON
- LUAJIT_URL
- LUAJIT_VERSION
- LUAJIT_VERSION_NUM
- LUAJIT_VERSION_SYM
- LUA_AUTHORS
- LUA_BITLIBNAME
- LUA_COLIBNAME
- LUA_COPYRIGHT
- LUA_CPATH
- LUA_DBLIBNAME
- LUA_DIRSEP
- LUA_ENVIRONINDEX
- LUA_ERRERR
- LUA_ERRFILE
- LUA_ERRMEM
- LUA_ERRRUN
- LUA_ERRSYNTAX
- LUA_EXECDIR
- LUA_FFILIBNAME
- LUA_FILEHANDLE
- LUA_GCCOLLECT
- LUA_GCCOUNT
- LUA_GCCOUNTB
- LUA_GCISRUNNING
- LUA_GCRESTART
- LUA_GCSETPAUSE
- LUA_GCSETSTEPMUL
- LUA_GCSTEP
- LUA_GCSTOP
- LUA_GLOBALSINDEX
- LUA_HOOKCALL
- LUA_HOOKCOUNT
- LUA_HOOKLINE
- LUA_HOOKRET
- LUA_HOOKTAILRET
- LUA_IDSIZE
- LUA_IGMARK
- LUA_INIT
- LUA_INTFRMLEN
- LUA_IOLIBNAME
- LUA_JITLIBNAME
- LUA_JROOT
- LUA_LMULTILIB
- LUA_LOADLIBNAME
- LUA_LROOT
- LUA_LUADIR
- LUA_MASKCALL
- LUA_MASKCOUNT
- LUA_MASKLINE
- LUA_MASKRET
- LUA_MATHLIBNAME
- LUA_MAXCAPTURES
- LUA_MINSTACK
- LUA_MULTILIB
- LUA_MULTRET
- LUA_NOREF
- LUA_NUMBER_FMT
- LUA_NUMBER_SCAN
- LUA_OK
- LUA_OSLIBNAME
- LUA_PATH
- LUA_PATHSEP
- LUA_PATH_MARK
- LUA_REFNIL
- LUA_REGISTRYINDEX
- LUA_RELEASE
- LUA_SIGNATURE
- LUA_STRLIBNAME
- LUA_TABLIBNAME
- LUA_TBOOLEAN
- LUA_TFUNCTION
- LUA_TLIGHTUSERDATA
- LUA_TNIL
- LUA_TNONE
- LUA_TNUMBER
- LUA_TSTRING
- LUA_TTABLE
- LUA_TTHREAD
- LUA_TUSERDATA
- LUA_VERSION
- LUA_VERSION_NUM
- LUA_YIELD
- STATIC
- WINVER
- lua_Chunkreader
- lua_Chunkwriter
Procedures (149)
- JIT_profile_dumpstack
- JIT_profile_start
- JIT_profile_stop
- JIT_setmode
- JIT_version_2_1_1744318430
- L_addlstring
- L_addstring
- L_addvalue
- L_argerror
- L_buffinit
- L_callmeta
- L_checkany
- L_checkinteger
- L_checklstring
- L_checknumber
- L_checkoption
- L_checkstack
- L_checktype
- L_checkudata
- L_error
- L_error_CFormat
- L_execresult
- L_fileresult
- L_findtable
- L_getmetafield
- L_gsub
- L_loadbuffer
- L_loadbufferx
- L_loadfile
- L_loadfilex
- L_loadstring
- L_newmetatable
- L_newstate
- L_openlib
- L_openlibs
- L_optinteger
- L_optlstring
- L_optnumber
- L_prepbuffer
- L_pushmodule
- L_pushresult
- L_ref
- L_register
- L_setfuncs
- L_setmetatable
- L_testudata
- L_traceback
- L_typerror
- L_unref
- L_where
- atpanic
- call
- checkstack
- close
- concat
- copy
- cpcall
- createtable
- dump
- equal
- error
- gc
- getallocf
- getfenv
- getfield
- gethook
- gethookcount
- gethookmask
- getinfo
- getlocal
- getmetatable
- getstack
- gettable
- gettop
- getupvalue
- insert
- iscfunction
- isnumber
- isstring
- isuserdata
- isyieldable
- lessthan
- load
- loadx
- newstate
- newthread
- newuserdata
- next
- objlen
- open_base
- open_bit
- open_debug
- open_ffi
- open_io
- open_jit
- open_math
- open_os
- open_package
- open_string
- open_string_buffer
- open_table
- operator_remove
- pcall
- pushboolean
- pushcclosure
- pushfstring
- pushfstring_CFormat
- pushinteger
- pushlightuserdata
- pushlstring
- pushnil
- pushnumber
- pushstring
- pushthread
- pushvalue
- rawequal
- rawget
- rawgeti
- rawset
- rawseti
- replace
- resume
- setallocf
- setfenv
- setfield
- sethook
- setlocal
- setmetatable
- settable
- settop
- setupvalue
- status
- toboolean
- tocfunction
- tointeger
- tointegerx
- tolstring
- tonumber
- tonumberx
- topointer
- tothread
- touserdata
- type
- typename
- upvalueid
- upvaluejoin
- version
- xmove
- yield
Types (13)
Imports (1)
Constants
LUAI_GCMUL ¶
LUAI_GCMUL :: 200;
LUAI_GCPAUSE ¶
LUAI_GCPAUSE :: 200;
LUAI_MAXCSTACK ¶
LUAI_MAXCSTACK :: 8000;
LUAI_MAXNUMBER2STR ¶
LUAI_MAXNUMBER2STR :: 32;
LUAI_MAXSTACK ¶
LUAI_MAXSTACK :: 65500;
LUAJIT_COPYRIGHT ¶
LUAJIT_COPYRIGHT :: "Copyright (C) 2005-2025 Mike Pall";
LUAJIT_MODE_FLUSH ¶
LUAJIT_MODE_FLUSH :: 0x0200;
LUAJIT_MODE_MASK ¶
LUAJIT_MODE_MASK :: 0x00ff;
LUAJIT_MODE_OFF ¶
LUAJIT_MODE_OFF :: 0x0000;
LUAJIT_MODE_ON ¶
LUAJIT_MODE_ON :: 0x0100;
LUAJIT_URL ¶
LUAJIT_URL :: "https://luajit.org/";
LUAJIT_VERSION ¶
LUAJIT_VERSION :: "LuaJIT 2.1.1744318430";
LUAJIT_VERSION_NUM ¶
LUAJIT_VERSION_NUM :: 20199;
LUAJIT_VERSION_SYM ¶
LUAJIT_VERSION_SYM :: JIT_version_2_1_1744318430;
LUA_AUTHORS ¶
LUA_AUTHORS :: "R. Ierusalimschy, L. H. de Figueiredo & W. Celes";
LUA_BITLIBNAME ¶
LUA_BITLIBNAME :: "bit";
LUA_COLIBNAME ¶
LUA_COLIBNAME :: "coroutine";
LUA_COPYRIGHT ¶
LUA_COPYRIGHT :: "Copyright (C) 1994-2008 Lua.org, PUC-Rio";
LUA_DBLIBNAME ¶
LUA_DBLIBNAME :: "debug";
LUA_DIRSEP ¶
LUA_DIRSEP :: "/";
LUA_ENVIRONINDEX ¶
LUA_ENVIRONINDEX :: -10001;
LUA_ERRERR ¶
LUA_ERRERR :: 5;
LUA_ERRFILE ¶
LUA_ERRFILE :: LUA_ERRERR+1;
LUA_ERRMEM ¶
LUA_ERRMEM :: 4;
LUA_ERRRUN ¶
LUA_ERRRUN :: 2;
LUA_ERRSYNTAX ¶
LUA_ERRSYNTAX :: 3;
LUA_EXECDIR ¶
LUA_EXECDIR :: "!";
LUA_FFILIBNAME ¶
LUA_FFILIBNAME :: "ffi";
LUA_FILEHANDLE ¶
LUA_FILEHANDLE :: "FILE*";
LUA_GCCOLLECT ¶
LUA_GCCOLLECT :: 2;
LUA_GCCOUNT ¶
LUA_GCCOUNT :: 3;
LUA_GCCOUNTB ¶
LUA_GCCOUNTB :: 4;
LUA_GCISRUNNING ¶
LUA_GCISRUNNING :: 9;
LUA_GCRESTART ¶
LUA_GCRESTART :: 1;
LUA_GCSETPAUSE ¶
LUA_GCSETPAUSE :: 6;
LUA_GCSETSTEPMUL ¶
LUA_GCSETSTEPMUL :: 7;
LUA_GCSTEP ¶
LUA_GCSTEP :: 5;
LUA_GCSTOP ¶
LUA_GCSTOP :: 0;
LUA_GLOBALSINDEX ¶
LUA_GLOBALSINDEX :: -10002;
LUA_HOOKCALL ¶
LUA_HOOKCALL :: 0;
LUA_HOOKCOUNT ¶
LUA_HOOKCOUNT :: 3;
LUA_HOOKLINE ¶
LUA_HOOKLINE :: 2;
LUA_HOOKRET ¶
LUA_HOOKRET :: 1;
LUA_HOOKTAILRET ¶
LUA_HOOKTAILRET :: 4;
LUA_IDSIZE ¶
LUA_IDSIZE :: 60;
LUA_IGMARK ¶
LUA_IGMARK :: "-";
LUA_INTFRMLEN ¶
LUA_INTFRMLEN :: "l";
LUA_IOLIBNAME ¶
LUA_IOLIBNAME :: "io";
LUA_JITLIBNAME ¶
LUA_JITLIBNAME :: "jit";
LUA_LMULTILIB ¶
LUA_LMULTILIB :: "lib";
LUA_LOADLIBNAME ¶
LUA_LOADLIBNAME :: "package";
LUA_LUADIR ¶
LUA_LUADIR :: "/lua/5.1/";
LUA_MASKCALL ¶
LUA_MASKCALL :: 1 << LUA_HOOKCALL;
LUA_MASKCOUNT ¶
LUA_MASKCOUNT :: 1 << LUA_HOOKCOUNT;
LUA_MASKLINE ¶
LUA_MASKLINE :: 1 << LUA_HOOKLINE;
LUA_MASKRET ¶
LUA_MASKRET :: 1 << LUA_HOOKRET;
LUA_MATHLIBNAME ¶
LUA_MATHLIBNAME :: "math";
LUA_MAXCAPTURES ¶
LUA_MAXCAPTURES :: 32;
LUA_MINSTACK ¶
LUA_MINSTACK :: 20;
LUA_MULTILIB ¶
LUA_MULTILIB :: "lib";
LUA_MULTRET ¶
LUA_MULTRET :: -1;
LUA_NUMBER_FMT ¶
LUA_NUMBER_FMT :: "%.14g";
LUA_NUMBER_SCAN ¶
LUA_NUMBER_SCAN :: "%lf";
LUA_OSLIBNAME ¶
LUA_OSLIBNAME :: "os";
LUA_PATHSEP ¶
LUA_PATHSEP :: ";";
LUA_PATH_MARK ¶
LUA_PATH_MARK :: "?";
LUA_REFNIL ¶
LUA_REFNIL :: -1;
LUA_REGISTRYINDEX ¶
LUA_REGISTRYINDEX :: -10000;
LUA_RELEASE ¶
LUA_RELEASE :: "Lua 5.1.4";
LUA_SIGNATURE ¶
LUA_SIGNATURE :: "\033Lua";
LUA_STRLIBNAME ¶
LUA_STRLIBNAME :: "string";
LUA_TABLIBNAME ¶
LUA_TABLIBNAME :: "table";
LUA_TBOOLEAN ¶
LUA_TBOOLEAN :: 1;
LUA_TFUNCTION ¶
LUA_TFUNCTION :: 6;
LUA_TLIGHTUSERDATA ¶
LUA_TLIGHTUSERDATA :: 2;
LUA_TNUMBER ¶
LUA_TNUMBER :: 3;
LUA_TSTRING ¶
LUA_TSTRING :: 4;
LUA_TTABLE ¶
LUA_TTABLE :: 5;
LUA_TTHREAD ¶
LUA_TTHREAD :: 8;
LUA_TUSERDATA ¶
LUA_TUSERDATA :: 7;
LUA_VERSION ¶
LUA_VERSION :: "Lua 5.1";
LUA_VERSION_NUM ¶
LUA_VERSION_NUM :: 501;
lua_Chunkreader ¶
lua_Chunkreader :: Reader;
lua_Chunkwriter ¶
lua_Chunkwriter :: Writer;
Procedures
JIT_profile_dumpstack ¶
JIT_profile_dumpstack :: (L: *State, fmt: *u8, depth: s32, len: *u64) -> *u8
JIT_profile_start ¶
JIT_profile_start :: (L: *State, mode: *u8, cb: JIT_profile_callback, data: *void)
JIT_profile_stop ¶
JIT_profile_stop :: (L: *State)
JIT_setmode ¶
JIT_setmode :: (L: *State, idx: s32, mode: s32) -> s32
JIT_version_2_1_1744318430 ¶
JIT_version_2_1_1744318430 :: ()
L_addlstring ¶
L_addlstring :: (B: *L_Buffer, s: *u8, l: u64)
L_addstring ¶
L_addstring :: (B: *L_Buffer, s: *u8)
L_addvalue ¶
L_addvalue :: (B: *L_Buffer)
L_argerror ¶
L_argerror :: (L: *State, numarg: s32, extramsg: *u8) -> s32
L_buffinit ¶
L_buffinit :: (L: *State, B: *L_Buffer)
L_callmeta ¶
L_callmeta :: (L: *State, obj: s32, e: *u8) -> s32
L_checkany ¶
L_checkany :: (L: *State, narg: s32)
L_checkinteger ¶
L_checkinteger :: (L: *State, numArg: s32) -> Integer
L_checklstring ¶
L_checklstring :: (L: *State, numArg: s32, l: *u64) -> *u8
L_checknumber ¶
L_checknumber :: (L: *State, numArg: s32) -> Number
L_checkoption ¶
L_checkoption :: (L: *State, narg: s32, def: *u8, lst: **u8) -> s32
L_checkstack ¶
L_checkstack :: (L: *State, sz: s32, msg: *u8)
L_checktype ¶
L_checktype :: (L: *State, narg: s32, t: s32)
L_checkudata ¶
L_checkudata :: (L: *State, ud: s32, tname: *u8) -> *void
L_error_CFormat ¶
L_error_CFormat :: (L: *State, fmt: *u8, __args: ..Any) -> s32
L_execresult ¶
L_execresult :: (L: *State, stat: s32) -> s32
L_fileresult ¶
L_fileresult :: (L: *State, stat: s32, fname: *u8) -> s32
L_findtable ¶
L_findtable :: (L: *State, idx: s32, fname: *u8, szhint: s32) -> *u8
L_getmetafield ¶
L_getmetafield :: (L: *State, obj: s32, e: *u8) -> s32
L_loadbuffer ¶
L_loadbuffer :: (L: *State, buff: *u8, sz: u64, name: *u8) -> s32
L_loadbufferx ¶
L_loadbufferx :: (L: *State, buff: *u8, sz: u64, name: *u8, mode: *u8) -> s32
L_loadfile ¶
L_loadfile :: (L: *State, filename: *u8) -> s32
L_loadfilex ¶
L_loadfilex :: (L: *State, filename: *u8, mode: *u8) -> s32
L_loadstring ¶
L_loadstring :: (L: *State, s: *u8) -> s32
L_newmetatable ¶
L_newmetatable :: (L: *State, tname: *u8) -> s32
L_newstate ¶
L_newstate :: () -> *State
L_openlibs ¶
L_openlibs :: (L: *State)
L_optinteger ¶
L_optinteger :: (L: *State, nArg: s32, def: Integer) -> Integer
L_optlstring ¶
L_optlstring :: (L: *State, numArg: s32, def: *u8, l: *u64) -> *u8
L_optnumber ¶
L_optnumber :: (L: *State, nArg: s32, def: Number) -> Number
L_prepbuffer ¶
L_prepbuffer :: (B: *L_Buffer) -> *u8
L_pushmodule ¶
L_pushmodule :: (L: *State, modname: *u8, sizehint: s32)
L_pushresult ¶
L_pushresult :: (B: *L_Buffer)
L_register ¶
L_register :: (L: *State, libname: *u8, l: *L_Reg)
L_setfuncs ¶
L_setfuncs :: (L: *State, l: *L_Reg, nup: s32)
L_setmetatable ¶
L_setmetatable :: (L: *State, tname: *u8)
L_testudata ¶
L_testudata :: (L: *State, ud: s32, tname: *u8) -> *void
L_traceback ¶
L_traceback :: (L: *State, L1: *State, msg: *u8, level: s32)
L_typerror ¶
L_typerror :: (L: *State, narg: s32, tname: *u8) -> s32
checkstack ¶
checkstack :: (L: *State, sz: s32) -> s32
createtable ¶
createtable :: (L: *State, narr: s32, nrec: s32)
gethookcount ¶
gethookcount :: (L: *State) -> s32
gethookmask ¶
gethookmask :: (L: *State) -> s32
getmetatable ¶
getmetatable :: (L: *State, objindex: s32) -> s32
getupvalue ¶
getupvalue :: (L: *State, funcindex: s32, n: s32) -> *u8
iscfunction ¶
iscfunction :: (L: *State, idx: s32) -> s32
isuserdata ¶
isuserdata :: (L: *State, idx: s32) -> s32
isyieldable ¶
isyieldable :: (L: *State) -> s32
newuserdata ¶
newuserdata :: (L: *State, sz: u64) -> *void
open_debug ¶
open_debug :: (L: *State) -> s32
open_package ¶
open_package :: (L: *State) -> s32
open_string ¶
open_string :: (L: *State) -> s32
open_string_buffer ¶
open_string_buffer :: (L: *State) -> s32
open_table ¶
open_table :: (L: *State) -> s32
operator_remove ¶
operator_remove :: (L: *State, idx: s32)
pushboolean ¶
pushboolean :: (L: *State, b: s32)
pushcclosure ¶
pushcclosure :: (L: *State, fn: CFunction, n: s32)
pushfstring ¶
pushfstring :: (L: *State, fmt: string, __args: ..Any) -> *u8
pushfstring_CFormat ¶
pushfstring_CFormat :: (L: *State, fmt: *u8, __args: ..Any) -> *u8
pushinteger ¶
pushinteger :: (L: *State, n: Integer)
pushlightuserdata ¶
pushlightuserdata :: (L: *State, p: *void)
pushlstring ¶
pushlstring :: (L: *State, s: *u8, l: u64)
pushnumber ¶
pushnumber :: (L: *State, n: Number)
pushstring ¶
pushstring :: (L: *State, s: *u8)
pushthread ¶
pushthread :: (L: *State) -> s32
setmetatable ¶
setmetatable :: (L: *State, objindex: s32) -> s32
setupvalue ¶
setupvalue :: (L: *State, funcindex: s32, n: s32) -> *u8
tocfunction ¶
tocfunction :: (L: *State, idx: s32) -> CFunction
tointegerx ¶
tointegerx :: (L: *State, idx: s32, isnum: *s32) -> Integer
touserdata ¶
touserdata :: (L: *State, idx: s32) -> *void
upvaluejoin ¶
upvaluejoin :: (L: *State, idx1: s32, n1: s32, idx2: s32, n2: s32)
Macros
This section is empty.
Types
Debug ¶
Debug :: struct {
event: s32;
name: *u8; /* (n) */
namewhat: *u8; /* (n) `global', `local', `field', `method' */
what: *u8; /* (S) `Lua', `C', `main', `tail' */
source: *u8; /* (S) */
currentline: s32; /* (l) */
nups: s32; /* (u) number of upvalues */
linedefined: s32; /* (S) */
lastlinedefined: s32; /* (S) */
short_src: [60] u8; /* (S) */
i_ci: s32; /* active function */
}JIT_profile_callback ¶
JIT_profile_callback :: #type (data: *void, L: *State, samples: s32, vmstate: s32) -> void #c_call;
LUAJIT_MODE ¶
LUAJIT_MODE :: enum u32 {
ENGINE :: 0;
DEBUG :: 1;
FUNC :: 2;
ALLFUNC :: 3;
ALLSUBFUNC :: 4;
TRACE :: 5;
WRAPCFUNC :: 16;
MAX :: 17;
LUAJIT_MODE_ENGINE :: ENGINE;
LUAJIT_MODE_DEBUG :: DEBUG;
LUAJIT_MODE_FUNC :: FUNC;
LUAJIT_MODE_ALLFUNC :: ALLFUNC;
LUAJIT_MODE_ALLSUBFUNC :: ALLSUBFUNC;
LUAJIT_MODE_TRACE :: TRACE;
LUAJIT_MODE_WRAPCFUNC :: WRAPCFUNC;
LUAJIT_MODE_MAX :: MAX;
}