Function yaslapi_sys::YASLX_checknuserdata
source · pub unsafe extern "C" fn YASLX_checknuserdata(
S: *mut YASL_State,
tag: *const c_char,
name: *const c_char,
n: c_uint
) -> *mut c_voidExpand description
Returns the nth position of the stack if it is a userdata with a matching tag. Otherwise, causes a type error, along with a printed error message. @param S The YASL_State. @param tag The tag of the userdata. @param name Name of the function in which this is called, used for error message. @param pos the position of the argument, used only for the error message. @return the nth position of the stack if it’s a userdata, otherwise no return.