示例#1
0
文件: handle.hpp 项目: Jedzia/Humbug
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);
}
示例#2
0
文件: handle.hpp 项目: Jedzia/Humbug
 static void unwrap(lua_State* L, handle const& value)
 {
     value.push(L);
 }
示例#3
0
 static void unwrap(lua_State* interpreter, handle const& value)
 {
     value.push(interpreter);
 }