| 2192 | } |
| 2193 | |
| 2194 | inline void LuaEngine::destroyHandle(int handleIndex) { |
| 2195 | // We don't bother setting the entry in the handle stack to nil, we just wait |
| 2196 | // for it to be reused and overwritten. We could provide a way to |
| 2197 | // periodically ensure that the entire free list is niled out if this becomes |
| 2198 | // a memory issue? |
| 2199 | m_handleFree.append(handleIndex); |
| 2200 | } |
| 2201 | |
| 2202 | template <typename T> |
| 2203 | size_t LuaEngine::pushArgument(lua_State* state, T const& arg) { |
no test coverage detected