Beispiel #1
0
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);
}
Beispiel #2
0
 static void unwrap(lua_State* L, handle const& value)
 {
     value.push(L);
 }
Beispiel #3
0
 static void unwrap(lua_State* interpreter, handle const& value)
 {
     value.push(interpreter);
 }