Skip to main content

luaur_vm/macros/
lua_rawgetp.rs

1use crate::functions::lua_rawgetptagged::lua_rawgetptagged;
2
3#[allow(non_snake_case)]
4pub unsafe fn lua_rawgetp(
5    l: *mut crate::records::lua_state::lua_State,
6    idx: core::ffi::c_int,
7    p: *mut core::ffi::c_void,
8) -> core::ffi::c_int {
9    #[cfg(not(feature = "internal_stub_resolution"))]
10    {
11        lua_rawgetptagged(l, idx, p, 0)
12    }
13
14    #[cfg(feature = "internal_stub_resolution")]
15    {
16        0
17    }
18}