Function tlua::ffi::lua_cpcall
source · pub unsafe extern "C" fn lua_cpcall(
l: *mut lua_State,
func: lua_CFunction,
ud: *mut c_void
) -> c_int
Expand description
Calls the C function func
in protected mode. func
starts with only
one element in its stack, a light userdata containing ud
. In case of
errors, lua_cpcall returns the same error codes as lua_pcall, plus the
error object on the top of the stack; otherwise, it returns zero, and
does not change the stack. All values returned by func
are discarded.
[-0, +(0|1), -]