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

Method Close

state.go:1441–1450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1439}
1440
1441func (ls *LState) Close() {
1442 atomic.AddInt32(&ls.stop, 1)
1443 for _, file := range ls.G.tempFiles {
1444 // ignore errors in these operations
1445 file.Close()
1446 os.Remove(file.Name())
1447 }
1448 ls.stack.FreeAll()
1449 ls.stack = nil
1450}
1451
1452/* registry operations {{{ */
1453

Callers 15

LoadFileMethod · 0.45
osExitFunction · 0.45
osTmpnameFunction · 0.45
baseLoadFileFunction · 0.45
TestCheckIntFunction · 0.45
TestCheckInt64Function · 0.45
TestCheckNumberFunction · 0.45
TestCheckStringFunction · 0.45
TestCheckBoolFunction · 0.45
TestCheckTableFunction · 0.45
TestCheckFunctionFunction · 0.45
TestCheckUserDataFunction · 0.45

Calls 3

NameMethod · 0.80
FreeAllMethod · 0.65
RemoveMethod · 0.45

Tested by 15

TestCheckIntFunction · 0.36
TestCheckInt64Function · 0.36
TestCheckNumberFunction · 0.36
TestCheckStringFunction · 0.36
TestCheckBoolFunction · 0.36
TestCheckTableFunction · 0.36
TestCheckFunctionFunction · 0.36
TestCheckUserDataFunction · 0.36
TestCheckThreadFunction · 0.36
TestCheckChannelFunction · 0.36
TestCheckTypeFunction · 0.36
TestCheckTypesFunction · 0.36