| 823 | } |
| 824 | |
| 825 | void LuaEngine::tableSet(bool raw, int handleIndex, LuaValue const& key, LuaValue const& value) { |
| 826 | lua_checkstack(m_state, 1); |
| 827 | |
| 828 | pushHandle(m_state, handleIndex); |
| 829 | pushLuaValue(m_state, key); |
| 830 | pushLuaValue(m_state, value); |
| 831 | |
| 832 | if (raw) |
| 833 | lua_rawset(m_state, -3); |
| 834 | else |
| 835 | lua_settable(m_state, -3); |
| 836 | |
| 837 | lua_pop(m_state, 1); |
| 838 | } |
| 839 | |
| 840 | void LuaEngine::tableSet(bool raw, int handleIndex, char const* key, LuaValue const& value) { |
| 841 | lua_checkstack(m_state, 1); |
no test coverage detected