MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / destroyHandle

Method destroyHandle

source/core/StarLua.hpp:2194–2200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2192}
2193
2194inline 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
2202template <typename T>
2203size_t LuaEngine::pushArgument(lua_State* state, T const& arg) {

Callers 2

~LuaHandleMethod · 0.80
StarLua.hppFile · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected