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

Method NewFunction

_state.go:1425–1427  ·  view source on GitHub ↗
(fn LGFunction)

Source from the content-addressed store, hash-verified

1423}
1424
1425func (ls *LState) NewFunction(fn LGFunction) *LFunction {
1426 return newLFunctionG(fn, ls.currentEnv(), 0)
1427}
1428
1429func (ls *LState) NewClosure(fn LGFunction, upvalues ...LValue) *LFunction {
1430 cl := newLFunctionG(fn, ls.currentEnv(), len(upvalues))

Callers 1

RegisterMethod · 0.95

Calls 2

currentEnvMethod · 0.95
newLFunctionGFunction · 0.85

Tested by

no test coverage detected