MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / Py_INCREF

Function Py_INCREF

python27-sys/src/object.rs:795–801  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

793// Reference counting macros.
794#[inline(always)]
795pub unsafe fn Py_INCREF(op: *mut PyObject) {
796 if cfg!(py_sys_config = "Py_REF_DEBUG") {
797 Py_IncRef(op)
798 } else {
799 (*op).ob_refcnt += 1
800 }
801}
802
803#[inline(always)]
804pub unsafe fn Py_DECREF(op: *mut PyObject) {

Callers 1

Py_XINCREFFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected