pub fn globals(&self) -> Table {
        unsafe {
            let _sg = StackGuard::new(self.state);
            assert_stack(self.state, 1);
            #[cfg(any(feature = "lua54", feature = "lua53", feature = "lua52"))]
            ffi::lua_rawgeti(self.state, ffi::LUA_REGISTRYINDEX, ffi::LUA_RIDX_GLOBALS);
            #[cfg(any(feature = "lua51", feature = "luajit", feature = "luau"))]
            ffi::lua_pushvalue(self.state, ffi::LUA_GLOBALSINDEX);
            Table(self.pop_ref())
        }
    }
/// Returns a handle to the global environment.
Returns a handle to the global environment.
Returns a handle to the global environment .
pub fn globals(&self) -> Table {
        unsafe {
            let _sg = StackGuard::new(self.state);
            assert_stack(self.state, 1);
            #[cfg(any(feature = "lua54", feature = "lua53", feature = "lua52"))]
            ffi::lua_rawgeti(self.state, ffi::LUA_REGISTRYINDEX, ffi::LUA_RIDX_GLOBALS);
            #[cfg(any(feature = "lua51", feature = "luajit", feature = "luau"))]
            ffi::lua_pushvalue(self.state, ffi::LUA_GLOBALSINDEX);
            Table(self.pop_ref())
        }
    }
pub fn globals ( & self ) -> Table { unsafe { let _sg = StackGuard :: new ( self . state ) ; assert_stack ( self . state , 1 ) ; # [ cfg ( any ( feature " " feature " " feature " " ) ) ] ffi :: lua_rawgeti ( self . state , ffi :: LUA_REGISTRYINDEX , ffi :: LUA_RIDX_GLOBALS ) ; # [ cfg ( any ( feature " " feature " " feature " " ) ) ] ffi :: lua_pushvalue ( self . state , ffi :: LUA_GLOBALSINDEX ) ; Table ( self . pop_ref ( ) ) } }
Returns a handle to the global environment.
Returns a handle to the global environment .
&self
&self