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

Method Register

_state.go:1792–1794  ·  view source on GitHub ↗

* }}} */ * register operations {{{ */

(name string, fn LGFunction)

Source from the content-addressed store, hash-verified

1790/* register operations {{{ */
1791
1792func (ls *LState) Register(name string, fn LGFunction) {
1793 ls.SetGlobal(name, ls.NewFunction(fn))
1794}
1795
1796/* }}} */
1797

Callers

nothing calls this directly

Calls 2

SetGlobalMethod · 0.95
NewFunctionMethod · 0.95

Tested by

no test coverage detected