* @brief Closes the Lua state and resets internal flags. */
| 190 | * @brief Closes the Lua state and resets internal flags. |
| 191 | */ |
| 192 | void DataModel::LuaScriptEngine::destroyState() |
| 193 | { |
| 194 | if (m_state) { |
| 195 | DataModel::FrameBuilder::instance().tableStore().clearLookupCache(); |
| 196 | lua_close(m_state); |
| 197 | m_state = nullptr; |
| 198 | } |
| 199 | |
| 200 | m_loaded = false; |
| 201 | m_deadline = QDeadlineTimer(QDeadlineTimer::Forever); |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * @brief Returns true once a parse() function has been loaded into the Lua state. |
nothing calls this directly
no test coverage detected