lua library

Classes

HookContext
Context for a debug hook.
LuaAuxLib
LuaBasicAPI
LuaCoroutineLib
Abstract interface for Lua coroutine operations. Implements the coroutine library functionality.
LuaDebug
Abstract interface for Lua debug operations.
LuaState
Abstract base class for Lua state operations. Combines basic API, auxiliary library, coroutine support, and debug features.
NativePlatformServices
Native implementation of platform services using dart:io.
PlatformServices
Abstract interface for platform-specific services.
Userdata<T>
Fix #36: Add per-instance metatable support to Userdata Previously, all Userdata objects shared the same metatable via registry key, which caused setting metatable on one userdata to affect all userdata.

Enums

ArithOp
arithmetic functions
CmpOp
comparison functions
LuaType
basic ypes
ThreadStatus

Constants

luaMaxInteger → const int
luaMaxStack → const int
luaMinInteger → const int
luaMinStack → const int
luaMultret → const int
luaRegistryIndex → const int
luaRidxGlobals → const int

Functions

createPlatformServices() PlatformServices
Creates the native platform services instance.
luaUpvalueIndex(int i) int
Returns the pseudo-index for an upvalue at the given index (1-based). Use this in Dart closures to access upvalues pushed before the closure.

Typedefs

DartFunction = int Function(LuaState ls)
Synchronous Dart function that can be called from Lua. Returns the number of values pushed onto the Lua stack.
DartFunctionAsync = Future<int> Function(LuaState ls)
Asynchronous Dart function that can be called from Lua. Returns a Future that resolves to the number of values pushed onto the Lua stack.

Exceptions / Errors

LuaYieldException
Exception thrown when a coroutine yields. This is used internally to implement coroutine.yield().