Function tlua::ffi::lua_pushlightuserdata

source ·
pub unsafe extern "C" fn lua_pushlightuserdata(
    l: *mut lua_State,
    ud: *mut c_void,
)
Expand description

Pushes a light userdata onto the stack. [-0, +1, -]

Userdata represent C values in Lua. A light userdata represents a pointer. It is a value (like a number): you do not create it, it has no individual metatable, and it is not collected (as it was never created). A light userdata is equal to “any” light userdata with the same C address.