* @brief Runs one full Lua garbage-collection cycle. */
| 221 | * @brief Runs one full Lua garbage-collection cycle. |
| 222 | */ |
| 223 | void 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. |