Skip to main content

luaur_vm/macros/
lua_getref.rs

1use crate::functions::lua_rawgeti::lua_rawgeti;
2use crate::macros::lua_registryindex::LUA_REGISTRYINDEX;
3
4#[inline(always)]
5pub fn lua_getref(l: *mut crate::records::lua_state::lua_State, ref_: core::ffi::c_int) {
6    unsafe {
7        lua_rawgeti(l, LUA_REGISTRYINDEX, ref_);
8    }
9}