lua

package
v0.0.0-...-d9afe6e Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LuaPool = &lStatePool{
	pool: make([]*lua.LState, 0, 10),
}

Global LState pool

Functions

func CheckGlobal

func CheckGlobal(proto *glua.FunctionProto) error

func CompileFile

func CompileFile(filePath string) (*glua.FunctionProto, error)

compile lua file

func CompileString

func CompileString(source string) (*glua.FunctionProto, error)

compile lua string

func DoCompiled

func DoCompiled(L *glua.LState, proto *glua.FunctionProto) error

func Restore

func Restore(key string) *glua.FunctionProto

func Store

func Store(key string, functionProto *glua.FunctionProto)

Types

type FunctionProtoManager

type FunctionProtoManager struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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