Function
set_coroutine_origin_tracking_depth
(depth: i32, vm: &VirtualMachine)
Source from the content-addressed store, hash-verified
| 1412 | |
| 1413 | #[pyfunction] |
| 1414 | fn set_coroutine_origin_tracking_depth(depth: i32, vm: &VirtualMachine) -> PyResult<()> { |
| 1415 | if depth < 0 { |
| 1416 | return Err(vm.new_value_error("depth must be >= 0")); |
| 1417 | } |
| 1418 | crate::vm::thread::COROUTINE_ORIGIN_TRACKING_DEPTH.set(depth as u32); |
| 1419 | Ok(()) |
| 1420 | } |
| 1421 | |
| 1422 | #[pyfunction] |
| 1423 | fn get_coroutine_origin_tracking_depth() -> i32 { |
Callers
nothing calls this directly
Tested by
no test coverage detected