module Luajit

Defined in:

luajit.cr
luajit/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

Class Method Summary

Constructor Detail

def self.new : LuaState #

Same as LuaState.create


[View source]

Class Method Detail

def self.close(state : LuaState) : Nil #

[View source]
def self.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


[View source]
def self.new_with_defaults : LuaState #

Same as .new, but also opens all Lua libraries


[View source]
def self.run(& : LuaState -> ) : Nil #

Yields a new LuaState and closes it at end of block


[View source]
def self.setup_userdata(state : LuaState, value : T, type : U.class) : Nil forall T, U #

Converts value into full userdata with metatable type


[View source]
def self.userdata_value(state : LuaState, type : T.class, index : Int32) : T forall T #

Gets value of userdata of type at index


[View source]