3#define CPYCPPYY_INTERNAL 1
5#undef CPYCPPYY_INTERNAL
20 if (borrowed) Py_DECREF(disp);
61 Py_DECREF(fPyWeakRef);
62 }
else if (fPyHardRef) {
63 ((
CPPInstance*)fPyHardRef)->GetObjectRaw() =
nullptr;
64 Py_DECREF(fPyHardRef);
72 Py_XDECREF(fPyWeakRef); fPyWeakRef =
nullptr;
73 Py_XDECREF(fPyHardRef);
76 if (fPyHardRef) ((
CPPInstance*)fPyHardRef)->SetDispatchPtr(
this);
87 fPyWeakRef = PyWeakref_NewRef(fPyHardRef,
nullptr);
88 Py_DECREF(fPyHardRef); fPyHardRef =
nullptr;
98 Py_DECREF(fPyWeakRef); fPyWeakRef =
nullptr;
static PyObject * CPyCppyy_GetWeakRef(PyObject *ref)
std::ios_base::fmtflags fFlags
DispatchPtr & assign(const DispatchPtr &other, void *cppinst)
PyObject * Get(bool borrowed=true) const