| 590 | } |
| 591 | |
| 592 | void LuaEngine::addImGui() { |
| 593 | lua_checkstack(m_state, 1); |
| 594 | |
| 595 | lua_rawgeti(m_state, LUA_REGISTRYINDEX, m_scriptDefaultEnvRegistryId); |
| 596 | pushImguiBindings(m_state); |
| 597 | lua_setfield(m_state, -2, "imgui"); |
| 598 | |
| 599 | lua_pop(m_state, 1); |
| 600 | } |
| 601 | |
| 602 | LuaEngine* LuaEngine::luaEnginePtr(lua_State* state) { |
| 603 | return (*reinterpret_cast<LuaEngine**>(lua_getextraspace(state))); |
no test coverage detected