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

Function Py_XINCREF

python3-sys/src/object.rs:926–930  ·  view source on GitHub ↗
(op: *mut PyObject)

Source from the content-addressed store, hash-verified

924
925#[inline(always)]
926pub unsafe fn Py_XINCREF(op: *mut PyObject) {
927 if !op.is_null() {
928 Py_INCREF(op)
929 }
930}
931
932#[inline(always)]
933pub unsafe fn Py_XDECREF(op: *mut PyObject) {

Callers

nothing calls this directly

Calls 1

Py_INCREFFunction · 0.70

Tested by

no test coverage detected