helper

package module
v0.0.0-...-586c81e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 5 Imported by: 0

README

glua-helper

GopherLua helper function

Documentation

Overview

Package helper provides gopher-lua helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(L *lua.LState, idx0 int, args ...interface{})

func CheckAnyList

func CheckAnyList(L *lua.LState, n int) []lua.LValue

func CheckIntList

func CheckIntList(L *lua.LState, n int) []int

func CheckStringList

func CheckStringList(L *lua.LState, n int) []string

func DoScript

func DoScript(L *lua.LState, path, content string) error

func MakeArray

func MakeArray(L *lua.LState, args ...interface{}) *lua.LTable

func MakeIntList

func MakeIntList(L *lua.LState, args ...int) *lua.LTable

func MakeStringList

func MakeStringList(L *lua.LState, args ...string) *lua.LTable

func RetBool

func RetBool(L *lua.LState, v bool) int

func RetError

func RetError(L *lua.LState, err error) int

func RetInt

func RetInt(L *lua.LState, v int) int

func RetIntList

func RetIntList(L *lua.LState, vs []int) int

func RetString

func RetString(L *lua.LState, v string) int

func RetStringList

func RetStringList(L *lua.LState, vs []string) int

func Return

func Return(L *lua.LState, args ...interface{}) int

func Run

func Run(L *lua.LState, code string, args ...interface{}) []interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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