Function lua_userdatatag

Source
pub unsafe extern "C-unwind" fn lua_userdatatag(
    L: *mut lua_State,
    idx: c_int,
) -> c_int
Expand description

Returns the tag of the userdata at the given index.

If the value at the given index is not a userdata, this function will return -1. Otherwise, it will return the tag of the userdata.