MCPcopy Create free account
hub / github.com/yuin/gopher-lua / NewFunctionFromProto

Method NewFunctionFromProto

_state.go:1414–1416  ·  view source on GitHub ↗
(proto *FunctionProto)

Source from the content-addressed store, hash-verified

1412}
1413
1414func (ls *LState) NewFunctionFromProto(proto *FunctionProto) *LFunction {
1415 return newLFunctionL(proto, ls.Env, int(proto.NumUpvalues))
1416}
1417
1418func (ls *LState) NewUserData() *LUserData {
1419 return &LUserData{

Callers

nothing calls this directly

Calls 1

newLFunctionLFunction · 0.85

Tested by

no test coverage detected