class

Lua::State

Inherits Reference < Object

Constructors

new(state : LibLua::State, library : Library = :none)
Source

Instance methods

at_panic
Source
call(num_args : Int32, num_results : Int32, context : LibLua::KContext, fn : LibLua::KFunction) : Nil
Source
call(num_args : Int32, num_results : Int32) : Nil
Source
close
Source
closed?
Source
create_object(name : String, type : T.class) : Nil forall T
Source
create_object(type : T.class) : Nil forall T
Source
dereference(ref : Int32) : Nil
Source
error(message : String, *args : _) : Nil
Source
finalize
Source
index(pos : Int32) : Any | Nil
Source
index!(pos : Int32) : Any
Source
is_boolean?(index : Int32) : Bool
Source
is_c_function?(index : Int32) : Bool
Source
is_integer?(index : Int32) : Bool
Source
is_none?(index : Int32) : Bool
Source
is_none_or_nil?(index : Int32) : Bool
Source
is_number?(index : Int32) : Bool
Source
is_string?(index : Int32) : Bool
Source
is_table?(index : Int32) : Bool
Source
is_userdata?(index : Int32) : Bool
Source
is_yieldable?(index : Int32) : Bool
Source
library
Source
load_buffer(buf : IO, mode : Mode | Nil = nil) : Nil
Source
load_file(path : Path | String, mode : Mode | Nil = nil) : Nil
Source
load_string(source : String) : Nil
Source
new_metatable(name : String) : Bool
Source
new_userdata(size : Int32, values : Int32) : Pointer(Void)
Source
next(index : Int32) : Bool
Source
open(libs : Library) : Nil
Source
pop!
Source
protected_call(num_args : Int32, num_results : Int32, msg_handler : Int32, context : LibLua::KContext, fn : LibLua::KFunction) : Nil
Source
protected_call(num_args : Int32, num_results : Int32, msg_handler : Int32) : Nil
Source
push(value : Bool) : Nil
Source
push(value : Proc) : Nil
Source
push(value : Int) : Nil
Source
push(value : String, with_len : Bool = true) : Nil
Source
push(__ : Nil) : Nil
Source
push(value : Number) : Nil
Source
push(value : Array) : Nil
Source
push(value : Hash) : Nil
Source
push(value : T) : Nil forall T
Source
push_format(format : String, *args : _) : Nil
Source
push_global_table
Source
push_light_userdata(ptr : Pointer(Void)) : Nil
Source
push_thread
Source
push_value(index : Int32) : Nil
Source
reference(pos : Int32) : Int32
Source
remove
Source
rotate(index : Int32, times : Int32) : Nil
Source
run_file(path : Path | String) : Nil
Source
run_string(source : String) : Nil
Source
set_global(name : String) : Nil
Source
set_metatable(index : Int32) : Nil
Source
set_table(index : Int32) : Nil
Source
set_warn_function
Source
size
Source
to_boolean(index : Int32) : Bool
Source
to_c_function(index : Int32) : LibLua::CFunction
Source
to_close(index : Int32) : Nil
Source
to_float(index : Int32) : Float64
Source
to_integer(index : Int32) : Int32
Source
to_number(index : Int32) : Number
Source
to_pointer(index : Int32) : Pointer(Void)
Source
to_string(index : Int32) : String
Source
to_thread(index : Int32) : State
Source
to_unsafe
Source
to_userdata(index : Int32, type : T.class) : T forall T
Source
to_userdata(index : Int32) : Pointer(Void)
Source
type_at(pos : Int32) : Type
Source
typename(pos : Int32) : String
Source
typename(type : Type) : String
Source
version
Source
warning(message : String, continue : Bool = false) : Nil
Source