Method
getint
(&self, arg: PyObjectRef, vm: &VirtualMachine)
Source from the content-addressed store, hash-verified
| 324 | |
| 325 | #[pymethod] |
| 326 | fn getint(&self, arg: PyObjectRef, vm: &VirtualMachine) -> PyResult<PyObjectRef> { |
| 327 | if let Some(int) = arg.downcast_ref::<PyInt>() { |
| 328 | return Ok(PyObjectRef::from(vm.ctx.new_int(int.as_bigint().clone()))); |
| 329 | } |
| 330 | |
| 331 | if let Some(obj) = arg.downcast_ref::<TclObject>() { |
| 332 | let value = obj.value; |
| 333 | unsafe { tk_sys::Tcl_IncrRefCount(value) }; |
| 334 | } else { |
| 335 | todo!(); |
| 336 | } |
| 337 | todo!(); |
| 338 | } |
| 339 | // TODO: Fix arguments |
| 340 | #[pymethod] |
| 341 | fn mainloop(&self, threshold: Option<i32>) -> PyResult<()> { |
Callers
nothing calls this directly
Tested by
no test coverage detected