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.
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().