Module lua

Source
Expand description

Lua interface

Structs§

LuaDebug
LuaShared
LuaSharedInterface
State
ValuesReturned

Enums§

LuaError

Constants§

LUA_ENVIRONINDEX
LUA_ERRERR
LUA_ERRFILE
LUA_ERRMEM
LUA_ERRRUN
LUA_ERRSYNTAX
LUA_GLOBALSINDEX
LUA_IDSIZE
LUA_MULTRET
LUA_NOREF
LUA_OK
LUA_REFNIL
LUA_REGISTRYINDEX
LUA_TBOOLEAN
LUA_TFUNCTION
LUA_TLIGHTUSERDATA
LUA_TNIL
LUA_TNONE
LUA_TNUMBER
LUA_TSTRING
LUA_TTABLE
LUA_TTHREAD
LUA_TUSERDATA
LUA_YIELD

Statics§

LUA_SHARED

Traits§

ForcePushToLua
PushCollectionToLua
PushToLua
TryPushToLua

Functions§

iterator
Pushes all elements in an iterator to a Lua table at the top of the stack.
load
Loads lua_shared and imports all functions. This is already done for you if you add #[gmod::gmod13_open] to your gmod13_open function.
state
Acquires a pointer to the Lua state for the current thread.

Type Aliases§

LuaFunction
LuaInt
LuaNumber
LuaReference
LuaSize
LuaString