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

Method Close

_state.go:1228–1237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1226}
1227
1228func (ls *LState) Close() {
1229 atomic.AddInt32(&ls.stop, 1)
1230 for _, file := range ls.G.tempFiles {
1231 // ignore errors in these operations
1232 file.Close()
1233 os.Remove(file.Name())
1234 }
1235 ls.stack.FreeAll()
1236 ls.stack = nil
1237}
1238
1239/* registry operations {{{ */
1240

Callers 2

closeUpvaluesMethod · 0.45
NewClosureMethod · 0.45

Calls 3

NameMethod · 0.80
FreeAllMethod · 0.65
RemoveMethod · 0.45

Tested by

no test coverage detected