inline handle::handle(handle const& other) : m_interpreter(other.m_interpreter) , m_index(LUA_NOREF) { if (m_interpreter == 0) return; other.push(m_interpreter); m_index = luaL_ref(m_interpreter, LUA_REGISTRYINDEX); }
static void unwrap(lua_State* L, handle const& value) { value.push(L); }
static void unwrap(lua_State* interpreter, handle const& value) { value.push(interpreter); }