Documentation ¶
Index ¶
- Constants
- func AsError(err error) (code int, ok bool)
- func NewMetatable(l *State, tname string) bool
- func PushOpenBase(l *State)
- func PushOpenCoroutine(l *State)
- func PushOpenDebug(l *State)
- func PushOpenMath(l *State)
- func PushOpenPackage(l *State)
- func PushOpenString(l *State)
- func PushOpenTable(l *State)
- func PushOpenUTF8(l *State)
- func UpvalueIndex(i int) int
- type ActivationRecord
- type Debug
- type Function
- type State
- func (l *State) AbsIndex(idx int) int
- func (l *State) Call(nArgs, nResults, msgHandler int) error
- func (l *State) CheckStack(n int) bool
- func (l *State) Close() error
- func (l *State) Copy(fromIdx, toIdx int)
- func (l *State) CopyUserdata(dst []byte, idx, start int) int
- func (l *State) CreateTable(nArr, nRec int)
- func (l *State) Dump(w io.Writer, strip bool) (int64, error)
- func (l *State) Field(idx int, k string, msgHandler int) (Type, error)
- func (l *State) GC()
- func (l *State) GCCount() int64
- func (l *State) GCGenerational(minorMul, majorMul int)
- func (l *State) GCIncremental(pause, stepMul, stepSize int)
- func (l *State) GCRestart()
- func (l *State) GCStep(stepSize int)
- func (l *State) GCStop()
- func (l *State) Global(name string, msgHandler int) (Type, error)
- func (l *State) Info(what string) *Debug
- func (l *State) Insert(idx int)
- func (l *State) IsBoolean(idx int) bool
- func (l *State) IsFunction(idx int) bool
- func (l *State) IsGCRunning() bool
- func (l *State) IsInteger(idx int) bool
- func (l *State) IsNativeFunction(idx int) bool
- func (l *State) IsNil(idx int) bool
- func (l *State) IsNone(idx int) bool
- func (l *State) IsNoneOrNil(idx int) bool
- func (l *State) IsNumber(idx int) bool
- func (l *State) IsString(idx int) bool
- func (l *State) IsTable(idx int) bool
- func (l *State) IsThread(idx int) bool
- func (l *State) IsUserdata(idx int) bool
- func (l *State) Len(idx int, msgHandler int) error
- func (l *State) Load(r io.Reader, chunkName string, mode string) error
- func (l *State) LoadString(s string, chunkName string, mode string) error
- func (l *State) Metatable(idx int) bool
- func (l *State) NewUserdataUV(size, nUValue int)
- func (l *State) Next(idx int) bool
- func (l *State) Pop(n int)
- func (l *State) PushBoolean(b bool)
- func (l *State) PushClosure(n int, f Function)
- func (l *State) PushInteger(n int64)
- func (l *State) PushLightUserdata(p uintptr)
- func (l *State) PushNil()
- func (l *State) PushNumber(n float64)
- func (l *State) PushString(s string)
- func (l *State) PushValue(idx int)
- func (l *State) RawEqual(idx1, idx2 int) bool
- func (l *State) RawField(idx int, k string) Type
- func (l *State) RawGet(idx int) Type
- func (l *State) RawIndex(idx int, n int64) Type
- func (l *State) RawLen(idx int) uint64
- func (l *State) RawSet(idx int)
- func (l *State) RawSetField(idx int, k string)
- func (l *State) RawSetIndex(idx int, n int64)
- func (l *State) Remove(idx int)
- func (l *State) Replace(idx int)
- func (l *State) Rotate(idx, n int)
- func (l *State) SetField(idx int, k string, msgHandler int) error
- func (l *State) SetGlobal(name string, msgHandler int) error
- func (l *State) SetMetatable(objIndex int)
- func (l *State) SetTable(idx, msgHandler int) error
- func (l *State) SetTop(idx int)
- func (l *State) SetUserValue(idx int, n int) bool
- func (l *State) SetUserdata(idx int, start int, src []byte)
- func (l *State) Stack(level int) *ActivationRecord
- func (l *State) Table(idx, msgHandler int) (Type, error)
- func (l *State) ToBoolean(idx int) bool
- func (l *State) ToInteger(idx int) (n int64, ok bool)
- func (l *State) ToNumber(idx int) (n float64, ok bool)
- func (l *State) ToPointer(idx int) uintptr
- func (l *State) ToString(idx int) (s string, ok bool)
- func (l *State) Top() int
- func (l *State) Type(idx int) Type
- func (l *State) UserValue(idx int, n int) Type
- type Type
Constants ¶
View Source
const ( VersionMajor = C.LUA_VERSION_MAJOR VersionMinor = C.LUA_VERSION_MINOR VersionRelease = C.LUA_VERSION_RELEASE VersionNum = C.LUA_VERSION_NUM VersionReleaseNum = C.LUA_VERSION_RELEASE_NUM Version = C.LUA_VERSION Release = C.LUA_RELEASE Copyright = C.LUA_COPYRIGHT Authors = C.LUA_AUTHORS )
View Source
const ( RegistryIndexMainThread int64 = C.LUA_RIDX_MAINTHREAD RegistryIndexGlobals int64 = C.LUA_RIDX_GLOBALS )
View Source
const ( LoadedTable = C.LUA_LOADED_TABLE PreloadTable = C.LUA_PRELOAD_TABLE )
View Source
const ( GName = C.LUA_GNAME CoroutineLibraryName = C.LUA_COLIBNAME TableLibraryName = C.LUA_TABLIBNAME IOLibraryName = C.LUA_IOLIBNAME OSLibraryName = C.LUA_OSLIBNAME StringLibraryName = C.LUA_STRLIBNAME UTF8LibraryName = C.LUA_UTF8LIBNAME MathLibraryName = C.LUA_MATHLIBNAME DebugLibraryName = C.LUA_DBLIBNAME PackageLibraryName = C.LUA_LOADLIBNAME )
View Source
const ( ErrRun int = C.LUA_ERRRUN ErrMem int = C.LUA_ERRMEM ErrErr int = C.LUA_ERRERR ErrSyntax int = C.LUA_ERRSYNTAX Yield int = C.LUA_YIELD )
View Source
const MultipleReturns int = C.LUA_MULTRET
View Source
const RegistryIndex int = C.LUA_REGISTRYINDEX
Variables ¶
This section is empty.
Functions ¶
func NewMetatable ¶
NewMetatable is the auxlib NewMetatable function.
func PushOpenBase ¶
func PushOpenBase(l *State)
func PushOpenCoroutine ¶
func PushOpenCoroutine(l *State)
func PushOpenDebug ¶
func PushOpenDebug(l *State)
func PushOpenMath ¶
func PushOpenMath(l *State)
func PushOpenPackage ¶
func PushOpenPackage(l *State)
func PushOpenString ¶
func PushOpenString(l *State)
func PushOpenTable ¶
func PushOpenTable(l *State)
func PushOpenUTF8 ¶
func PushOpenUTF8(l *State)
func UpvalueIndex ¶
Types ¶
type ActivationRecord ¶
type ActivationRecord struct {
// contains filtered or unexported fields
}
func (*ActivationRecord) Info ¶
func (ar *ActivationRecord) Info(what string) *Debug
type State ¶
type State struct {
// contains filtered or unexported fields
}
func (*State) CheckStack ¶
func (*State) CreateTable ¶
func (*State) GCGenerational ¶
func (*State) GCIncremental ¶
func (*State) IsFunction ¶
func (*State) IsGCRunning ¶
func (*State) IsNativeFunction ¶
func (*State) IsNoneOrNil ¶
func (*State) IsUserdata ¶
func (*State) LoadString ¶
func (*State) NewUserdataUV ¶
func (*State) PushBoolean ¶
func (*State) PushClosure ¶
func (*State) PushInteger ¶
func (*State) PushLightUserdata ¶
func (*State) PushNumber ¶
func (*State) PushString ¶
func (*State) RawSetField ¶
func (*State) RawSetIndex ¶
func (*State) SetMetatable ¶
func (*State) Stack ¶
func (l *State) Stack(level int) *ActivationRecord
type Type ¶
const ( TypeNone Type = C.LUA_TNONE TypeNil Type = C.LUA_TNIL TypeBoolean Type = C.LUA_TBOOLEAN TypeLightUserdata Type = C.LUA_TLIGHTUSERDATA TypeNumber Type = C.LUA_TNUMBER TypeString Type = C.LUA_TSTRING TypeTable Type = C.LUA_TTABLE TypeFunction Type = C.LUA_TFUNCTION TypeUserdata Type = C.LUA_TUSERDATA TypeThread Type = C.LUA_TTHREAD )
Click to show internal directories.
Click to hide internal directories.