module Luajit
Defined in:
luajit.crluajit/exceptions.cr
luajit/iterators.cr
luajit/lib_luajit.cr
luajit/lua_any.cr
luajit/lua_gc.cr
luajit/lua_library.cr
luajit/lua_object.cr
luajit/lua_ref.cr
luajit/lua_reg.cr
luajit/lua_state.cr
luajit/lua_status.cr
luajit/lua_type.cr
luajit/trackable.cr
luajit/version.cr
Constant Summary
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-mdwagner-luajit.cr-v0.4.0/src/luajit`).chomp.stringify }}
Constructors
-
.new : LuaState
Same as
LuaState.create
Class Method Summary
-
.close(state : LuaState) : Nil
Same as
LuaState.destroy
-
.create_lua_object(state : LuaState, type : T.class) : Nil forall T
Creates a Lua object for type
-
.new_with_defaults : LuaState
Same as
.new
, but also opens all Lua libraries -
.run(& : LuaState -> ) : Nil
Yields a new
LuaState
and closes it at end of block -
.setup_userdata(state : LuaState, value : T, type : U.class) : Nil forall T, U
Converts value into full userdata with metatable type
-
.userdata_value(state : LuaState, type : T.class, index : Int32) : T forall T
Gets value of userdata of type at index
Constructor Detail
Class Method Detail
Creates a Lua object for type
NOTE Will mutate type global name or metatable name unless set
Same as .new
, but also opens all Lua libraries
Yields a new LuaState
and closes it at end of block
Converts value into full userdata with metatable type
Gets value of userdata of type at index