MCPcopy Index your code
hub / github.com/RustPython/RustPython / fire_c_return

Function fire_c_return

crates/vm/src/stdlib/sys/monitoring.rs:877–891  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    code: &PyRef<PyCode>,
    offset: u32,
    callable: &PyObjectRef,
    arg0: PyObjectRef,
)

Source from the content-addressed store, hash-verified

875}
876
877pub fn fire_c_return(
878 vm: &VirtualMachine,
879 code: &PyRef<PyCode>,
880 offset: u32,
881 callable: &PyObjectRef,
882 arg0: PyObjectRef,
883) -> PyResult<()> {
884 fire(
885 vm,
886 EVENT_C_RETURN,
887 code,
888 offset,
889 &[vm.ctx.new_int(offset).into(), callable.clone(), arg0],
890 )
891}
892
893pub fn fire_c_raise(
894 vm: &VirtualMachine,

Callers 2

execute_instrumentedMethod · 0.85

Calls 3

fireFunction · 0.85
new_intMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected