module

Luajit

Constants

VERSION = {{ (`shards version /tmp/tmp.imFPpf/src/src/luajit`).chomp.stringify }}

Constructors

new

Same as LuaState.create

Source

Class methods

close(state : LuaState) : Nil

Same as LuaState.destroy

Source
create_lua_object(state : LuaState, type : T.class) : Nil forall T

Creates a Lua object for type

NOTE: Will mutate type global name or metatable name unless set

Source
new_with_defaults

Same as .new, but also opens all Lua libraries

Source
run

Yields a new LuaState and closes it at end of block

Source
setup_userdata(state : LuaState, value : T, type : U.class) : Nil forall T, U

Converts value into full userdata with metatable type

Source
userdata_value(state : LuaState, type : T.class, index : Int32) : T forall T

Gets value of userdata of type at index

Source

Nested types