3#define CPYCPPYY_INTERNAL 1
5#undef CPYCPPYY_INTERNAL
51 PyObject* pyobj = PyWeakref_GetObject(fPyWeakRef);
54 Py_DECREF(fPyWeakRef);
55 }
else if (fPyHardRef) {
56 ((
CPPInstance*)fPyHardRef)->GetObjectRaw() =
nullptr;
57 Py_DECREF(fPyHardRef);
65 Py_XDECREF(fPyWeakRef); fPyWeakRef =
nullptr;
66 Py_XDECREF(fPyHardRef);
69 if (fPyHardRef) ((
CPPInstance*)fPyHardRef)->SetDispatchPtr(
this);
79 fPyWeakRef = PyWeakref_NewRef(fPyHardRef,
nullptr);
80 Py_DECREF(fPyHardRef); fPyHardRef =
nullptr;
89 fPyHardRef = PyWeakref_GetObject(fPyWeakRef);
90 if (fPyHardRef == Py_None) fPyHardRef =
nullptr;
91 Py_XINCREF(fPyHardRef);
92 Py_DECREF(fPyWeakRef); fPyWeakRef =
nullptr;
std::ios_base::fmtflags fFlags
DispatchPtr & assign(const DispatchPtr &other, void *cppinst)