go2lua

package module
v0.0.0-...-10569d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

README

go2lua

go2lua wrapper code generator

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolArg

func BoolArg(vm *lua.State, idx int) bool

func Float32Arg

func Float32Arg(vm *lua.State, idx int) float64

func Float64Arg

func Float64Arg(vm *lua.State, idx int) float64

func IntArg

func IntArg(vm *lua.State, idx int) int

func MakeMetaTable

func MakeMetaTable(vm *lua.State, cls *TClassMeta)

func NewPackage

func NewPackage(path string) *tPackage

func StringArg

func StringArg(vm *lua.State, idx int) string

func UserDataArg

func UserDataArg(vm *lua.State, idx int) interface{}

Types

type TClassMeta

type TClassMeta struct {
	Type       reflect.Type
	LuaMetaKey string
	Methods    map[string]lua.Function
	Fields     map[string]TFieldAccessor
}

func (*TClassMeta) GetField

func (cls *TClassMeta) GetField(vm *lua.State) int

func (*TClassMeta) SetField

func (cls *TClassMeta) SetField(vm *lua.State) int

type TFieldAccessor

type TFieldAccessor struct {
	Getter, Setter lua.Function
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL