MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / CollectGarbage

Method CollectGarbage

src/script/squirrel.cpp:370–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370void Squirrel::CollectGarbage()
371{
372 ScriptAllocatorScope alloc_scope(this);
373 sq_collectgarbage(this->vm);
374}
375
376bool Squirrel::CallMethod(HSQOBJECT instance, std::string_view method_name, HSQOBJECT *ret, int suspend)
377{

Callers 2

GameLoopMethod · 0.45
GameLoopMethod · 0.45

Calls 1

sq_collectgarbageFunction · 0.85

Tested by

no test coverage detected