MCPcopy Index your code
hub / github.com/yuin/gopher-lua / SetGlobal

Method SetGlobal

_state.go:1731–1733  ·  view source on GitHub ↗
(name string, value LValue)

Source from the content-addressed store, hash-verified

1729}
1730
1731func (ls *LState) SetGlobal(name string, value LValue) {
1732 ls.SetField(ls.Get(GlobalsIndex), name, value)
1733}
1734
1735func (ls *LState) Next(tb *LTable, key LValue) (LValue, LValue) {
1736 return tb.Next(key)

Callers 1

RegisterMethod · 0.95

Calls 2

SetFieldMethod · 0.95
GetMethod · 0.95

Tested by

no test coverage detected