| 796 | } |
| 797 | |
| 798 | LuaValue LuaEngine::tableGet(bool raw, int handleIndex, LuaValue const& key) { |
| 799 | lua_checkstack(m_state, 1); |
| 800 | |
| 801 | pushHandle(m_state, handleIndex); |
| 802 | pushLuaValue(m_state, key); |
| 803 | if (raw) |
| 804 | lua_rawget(m_state, -2); |
| 805 | else |
| 806 | lua_gettable(m_state, -2); |
| 807 | |
| 808 | LuaValue v = popLuaValue(m_state); |
| 809 | lua_pop(m_state, 1); |
| 810 | return v; |
| 811 | } |
| 812 | |
| 813 | LuaValue LuaEngine::tableGet(bool raw, int handleIndex, char const* key) { |
| 814 | lua_checkstack(m_state, 1); |
no test coverage detected