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

Method NewFunctionFromProto

state.go:1627–1629  ·  view source on GitHub ↗
(proto *FunctionProto)

Source from the content-addressed store, hash-verified

1625}
1626
1627func (ls *LState) NewFunctionFromProto(proto *FunctionProto) *LFunction {
1628 return newLFunctionL(proto, ls.Env, int(proto.NumUpvalues))
1629}
1630
1631func (ls *LState) NewUserData() *LUserData {
1632 return &LUserData{

Callers

nothing calls this directly

Calls 1

newLFunctionLFunction · 0.85

Tested by

no test coverage detected