()
| 1439 | } |
| 1440 | |
| 1441 | func (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 |