Lua.VM (Lua v1.0.0-rc.1)

View Source

Public API for the Lua Virtual Machine.

Executes compiled Lua prototypes.

Summary

Functions

Executes a compiled prototype.

Functions

execute(proto, state \\ State.new())

@spec execute(Lua.Compiler.Prototype.t(), Lua.VM.State.t()) ::
  {:ok, list(), Lua.VM.State.t()}

Executes a compiled prototype.

Returns {:ok, results, state} on success.