MCPcopy Index your code
hub / github.com/Shopify/go-lua / OpenMainFunction

Method OpenMainFunction

code.go:1144–1147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1142}
1143
1144func (f *function) OpenMainFunction() {
1145 f.EnterBlock(false)
1146 f.makeUpValue("_ENV", makeExpression(kindLocal, 0))
1147}
1148
1149func (f *function) CloseMainFunction() *function {
1150 f.ReturnNone()

Callers 1

mainFunctionMethod · 0.80

Calls 3

EnterBlockMethod · 0.95
makeUpValueMethod · 0.95
makeExpressionFunction · 0.85

Tested by

no test coverage detected