| 721 | } |
| 722 | |
| 723 | void Squirrel::Uninitialize() |
| 724 | { |
| 725 | ScriptAllocatorScope alloc_scope(this); |
| 726 | |
| 727 | /* Remove the delegation */ |
| 728 | sq_pushroottable(this->vm); |
| 729 | sq_pushnull(this->vm); |
| 730 | sq_setdelegate(this->vm, -2); |
| 731 | sq_pop(this->vm, 1); |
| 732 | |
| 733 | /* Clean up the stuff */ |
| 734 | sq_pop(this->vm, 1); |
| 735 | sq_close(this->vm); |
| 736 | |
| 737 | /* Reset memory allocation errors. */ |
| 738 | this->allocator->Reset(); |
| 739 | } |
| 740 | |
| 741 | void Squirrel::Reset() |
| 742 | { |
no test coverage detected