pub(crate) unsafe fn push_ref(&self, lref: &LuaRef) {
        assert!(
            Arc::ptr_eq(&lref.lua.extra, &self.extra),
            "Lua instance passed Value created from a different main Lua state"
        );
        let extra = &*self.extra.get();
        #[cfg(not(feature = "luau"))]
        {
            ffi::lua_pushvalue(extra.ref_thread, lref.index);
            ffi::lua_xmove(extra.ref_thread, self.state, 1);
        }
        #[cfg(feature = "luau")]
        ffi::lua_xpush(extra.ref_thread, self.state, lref.index);
    }
// Pushes a LuaRef value onto the stack, uses 1 stack space, does not call checkstack
Pushes a LuaRef value onto the stack, uses 1 stack space, does not call checkstack
Pushes a LuaRef value onto the stack uses 1 stack space does not call checkstack
pub(crate) unsafe fn push_ref(&self, lref: &LuaRef) {
        assert!(
            Arc::ptr_eq(&lref.lua.extra, &self.extra),
            "Lua instance passed Value created from a different main Lua state"
        );
        let extra = &*self.extra.get();
        #[cfg(not(feature = "luau"))]
        {
            ffi::lua_pushvalue(extra.ref_thread, lref.index);
            ffi::lua_xmove(extra.ref_thread, self.state, 1);
        }
        #[cfg(feature = "luau")]
        ffi::lua_xpush(extra.ref_thread, self.state, lref.index);
    }
pub ( crate ) unsafe fn push_ref ( & self , lref : & LuaRef ) { assert ! ( Arc ptr_eq ( lref lua extra self extra ) " " ) ; let extra = & * self . extra . get ( ) ; # [ cfg ( not ( feature " " ) ) ] { ffi :: lua_pushvalue ( extra . ref_thread , lref . index ) ; ffi :: lua_xmove ( extra . ref_thread , self . state , 1 ) ; } # [ cfg ( feature " " ) ] ffi :: lua_xpush ( extra . ref_thread , self . state , lref . index ) ; }
Pushes a LuaRef value onto the stack, uses 1 stack space, does not call checkstack
Pushes a LuaRef value onto the stack uses 1 stack space does not call checkstack
&self
lref
&LuaRef
&self
lref
&LuaRef