diff options
Diffstat (limited to 'src/script/squirrel.cpp')
-rw-r--r-- | src/script/squirrel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index 26196292c..1400eaf0a 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -175,6 +175,11 @@ bool Squirrel::Resume(int suspend) return this->vm->_suspended != 0; } +void Squirrel::CollectGarbage() +{ + sq_collectgarbage(this->vm); +} + bool Squirrel::CallMethod(HSQOBJECT instance, const char *method_name, HSQOBJECT *ret, int suspend) { /* Store the stack-location for the return value. We need to |