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

Method GetGlobal

_state.go:1727–1729  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

1725}
1726
1727func (ls *LState) GetGlobal(name string) LValue {
1728 return ls.GetField(ls.Get(GlobalsIndex), name)
1729}
1730
1731func (ls *LState) SetGlobal(name string, value LValue) {
1732 ls.SetField(ls.Get(GlobalsIndex), name, value)

Callers

nothing calls this directly

Calls 2

GetFieldMethod · 0.95
GetMethod · 0.95

Tested by

no test coverage detected