Documentation ¶
Index ¶
- Variables
- func CheckGlobal(proto *glua.FunctionProto) error
- func CompileFile(filePath string) (*glua.FunctionProto, error)
- func CompileString(source string) (*glua.FunctionProto, error)
- func DoCompiled(L *glua.LState, proto *glua.FunctionProto) error
- func Restore(key string) *glua.FunctionProto
- func Store(key string, functionProto *glua.FunctionProto)
- type FunctionProtoManager
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 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
}
Click to show internal directories.
Click to hide internal directories.