ExLua v0.3.0 Lua

Summary

Functions

Calls a Lua compiled chunk

Interprets a Lua code snippet

Interprets a Lua code snippet

Interprets a Lua source file

Interprets a Lua source file

Performs garbage collection

Gets a table index

Compiles a Lua code snippet into a chunk

Compiles a Lua code snippet into a chunk

Compiles a Lua source file into a chunk

Compiles a Lua source file into a chunk

Sets a table index to the given value

Functions

call_chunk!(state, chunk, args \\ [])

Specs

call_chunk!(Lua.State.t, Lua.Chunk.t, [any]) :: {Lua.State.t, [any]}

Calls a Lua compiled chunk.

call_function!(state, name, args \\ [])

Specs

call_function!(Lua.State.t, [atom], [any]) :: {Lua.State.t, [any]}

Calls a Lua function.

eval(state, code)

Specs

eval(Lua.State.t, binary) ::
  {:ok, any} |
  {:error, any}

Interprets a Lua code snippet.

eval!(state, code)

Specs

eval!(Lua.State.t, binary) :: any

Interprets a Lua code snippet.

eval_file(state, filepath)

Specs

eval_file(Lua.State.t, binary) ::
  {:ok, any} |
  {:error, any}

Interprets a Lua source file.

eval_file!(state, filepath)

Specs

eval_file!(Lua.State.t, binary) :: any

Interprets a Lua source file.

gc(state)

Specs

Performs garbage collection.

get_table(state, name)

Specs

get_table(Lua.State.t, [atom]) :: {Lua.State.t, any}

Gets a table index.

load(state, code)

Specs

load(Lua.State.t, binary) ::
  {:ok, Lua.State.t, Lua.Chunk.t} |
  {:error, any, any}

Compiles a Lua code snippet into a chunk.

load!(state, code)

Specs

load!(Lua.State.t, binary) :: {Lua.State.t, Lua.Chunk.t}

Compiles a Lua code snippet into a chunk.

load_file(state, filepath)

Specs

load_file(Lua.State.t, binary) ::
  {:ok, Lua.State.t, Lua.Chunk.t} |
  {:error, any, any}

Compiles a Lua source file into a chunk.

load_file!(state, filepath)

Specs

load_file!(Lua.State.t, binary) :: {Lua.State.t, Lua.Chunk.t}

Compiles a Lua source file into a chunk.

set_table(state, name, value)

Specs

set_table(Lua.State.t, [atom], any) :: Lua.State.t

Sets a table index to the given value.