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

Function fire_branch_right

crates/vm/src/stdlib/sys/monitoring.rs:1066–1082  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    code: &PyRef<PyCode>,
    offset: u32,
    destination: u32,
)

Source from the content-addressed store, hash-verified

1064}
1065
1066pub fn fire_branch_right(
1067 vm: &VirtualMachine,
1068 code: &PyRef<PyCode>,
1069 offset: u32,
1070 destination: u32,
1071) -> PyResult<()> {
1072 fire(
1073 vm,
1074 EVENT_BRANCH_RIGHT,
1075 code,
1076 offset,
1077 &[
1078 vm.ctx.new_int(offset).into(),
1079 vm.ctx.new_int(destination).into(),
1080 ],
1081 )
1082}
1083
1084#[pymodule(sub)]
1085pub(super) mod sys_monitoring {

Callers 1

execute_instrumentedMethod · 0.85

Calls 2

fireFunction · 0.85
new_intMethod · 0.45

Tested by

no test coverage detected