lua

package
v0.0.0-...-c429a28 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncName

func FuncName() string

func OpenPlume

func OpenPlume(L *Stack)

Types

type CFunction

type CFunction = C.lua_CFunction

type Stack

type Stack = C.lua_State

func NewStack

func NewStack() *Stack

func (*Stack) AddPackagePath

func (L *Stack) AddPackagePath(path string)

func (*Stack) BeginModule

func (L *Stack) BeginModule(name string)

func (*Stack) BeginUserType

func (L *Stack) BeginUserType(name string)

func (*Stack) Class

func (L *Stack) Class(lname, name, base string)

func (*Stack) Clean

func (L *Stack) Clean()

func (*Stack) Close

func (L *Stack) Close()

func (*Stack) EndModule

func (L *Stack) EndModule()

func (*Stack) EndUserType

func (L *Stack) EndUserType(name string)

func (*Stack) Error

func (L *Stack) Error(format string, a ...interface{}) int

func (*Stack) ExecuteFunction

func (L *Stack) ExecuteFunction(f *C.tolua_FunctionRef, nargs, nresults int)

func (*Stack) ExecuteGlobalFunction

func (L *Stack) ExecuteGlobalFunction(funcname string, nargs, nresults int)

excute

func (*Stack) ExecuteString

func (L *Stack) ExecuteString(codes string)

func (*Stack) FormatIndex

func (L *Stack) FormatIndex(index int) int

func (*Stack) Function

func (L *Stack) Function(name string, f CFunction)

func (*Stack) GetTop

func (L *Stack) GetTop() int

stack

func (*Stack) IsUserTable

func (L *Stack) IsUserTable(index int, name string) bool

func (*Stack) Load

func (L *Stack) Load(modname string)

func (*Stack) Module

func (L *Stack) Module(name string)

tolua

func (*Stack) Pop

func (L *Stack) Pop(n int)

func (*Stack) PushBool

func (L *Stack) PushBool(value bool)

func (*Stack) PushFloat32

func (L *Stack) PushFloat32(value float32)

func (*Stack) PushFloat64

func (L *Stack) PushFloat64(value float64)

func (*Stack) PushFunctionRef

func (L *Stack) PushFunctionRef(f *C.tolua_FunctionRef)

func (*Stack) PushInt

func (L *Stack) PushInt(value int)

func (*Stack) PushInt32

func (L *Stack) PushInt32(value int32)

func (*Stack) PushInt64

func (L *Stack) PushInt64(value int64)

func (*Stack) PushLString

func (L *Stack) PushLString(value string)

func (*Stack) PushLightUserdata

func (L *Stack) PushLightUserdata(p unsafe.Pointer)

func (*Stack) PushNil

func (L *Stack) PushNil()

push value

func (*Stack) PushString

func (L *Stack) PushString(value string)

func (*Stack) PushUserType

func (L *Stack) PushUserType(p unsafe.Pointer, name string)

func (*Stack) Reload

func (L *Stack) Reload(modname string)

func (*Stack) RemoveFunctionRef

func (L *Stack) RemoveFunctionRef(f *C.tolua_FunctionRef)

remove

func (*Stack) ToBool

func (L *Stack) ToBool(index int) bool

to value

func (*Stack) ToFloat32

func (L *Stack) ToFloat32(index int) float32

func (*Stack) ToFloat64

func (L *Stack) ToFloat64(index int) float64

func (*Stack) ToFunctionRef

func (L *Stack) ToFunctionRef(index int) *C.tolua_FunctionRef

func (*Stack) ToInt

func (L *Stack) ToInt(index int) int

func (*Stack) ToInt32

func (L *Stack) ToInt32(index int) int32

func (*Stack) ToInt64

func (L *Stack) ToInt64(index int) int64

func (*Stack) ToLString

func (L *Stack) ToLString(index int) string

func (*Stack) ToString

func (L *Stack) ToString(index int) string

func (*Stack) ToUserType

func (L *Stack) ToUserType(index int, name string) unsafe.Pointer

func (*Stack) ToUserdata

func (L *Stack) ToUserdata(index int) unsafe.Pointer

func (*Stack) Unload

func (L *Stack) Unload(modname string)

func (*Stack) UserType

func (L *Stack) UserType(name string, col CFunction)

Jump to

Keyboard shortcuts

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