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

Function Py_XINCREF

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

Source from the content-addressed store, hash-verified

823
824#[inline(always)]
825pub unsafe fn Py_XINCREF(op: *mut PyObject) {
826 if !op.is_null() {
827 Py_INCREF(op)
828 }
829}
830
831#[inline(always)]
832pub unsafe fn Py_XDECREF(op: *mut PyObject) {

Callers

nothing calls this directly

Calls 1

Py_INCREFFunction · 0.70

Tested by

no test coverage detected