()
| 1226 | } |
| 1227 | |
| 1228 | func (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 |
no test coverage detected