| 903 | } |
| 904 | |
| 905 | void LuaEngine::tableSetMetatable(int handleIndex, LuaTable const& table) { |
| 906 | lua_checkstack(m_state, 2); |
| 907 | |
| 908 | pushHandle(m_state, handleIndex); |
| 909 | pushHandle(m_state, table.handleIndex()); |
| 910 | lua_setmetatable(m_state, -2); |
| 911 | lua_pop(m_state, 1); |
| 912 | } |
| 913 | |
| 914 | void LuaEngine::setContextRequire(int handleIndex, LuaContext::RequireFunction requireFunction) { |
| 915 | lua_checkstack(m_state, 4); |
no test coverage detected