Py_INCREF

Increment reference counts. Can be used wherever a void expression is allowed. The argument must not be a NULL pointer. If it may be NULL, use Py_XINCREF instead.

In addition, converts and returns Borrowed references to their base types.

extern (C)
Py_INCREF
(
T
)
(
T op
)
if (
is(T == PyObject*) ||
is(T _unused : Borrowed!P*,
P
)
)

Meta