MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / collectGarbage

Method collectGarbage

app/src/DataModel/Scripting/LuaScriptEngine.cpp:223–227  ·  view source on GitHub ↗

* @brief Runs one full Lua garbage-collection cycle. */

Source from the content-addressed store, hash-verified

221 * @brief Runs one full Lua garbage-collection cycle.
222 */
223void DataModel::LuaScriptEngine::collectGarbage()
224{
225 if (m_state)
226 lua_gc(m_state, LUA_GCCOLLECT);
227}
228
229/**
230 * @brief Resets the engine by recreating the Lua state.

Callers

nothing calls this directly

Calls 1

lua_gcFunction · 0.85

Tested by

no test coverage detected