# Pastebin 9xzoBiAm static PyObject *_setupNew(SbkObject *self, PyTypeObject *subtype) { auto *obSubtype = reinterpret_cast(subtype); auto *sbkSubtype = subtype; auto *obSelf = reinterpret_cast(self); Py_INCREF(obSubtype); auto d = new SbkObjectPrivate; auto *sotp = PepType_SOTP(sbkSubtype); int numBases = ((sotp && sotp->is_multicpp) ? Shiboken::getNumberOfCppBaseClasses(subtype) : 1); d->cptr = new void *[numBases]; std::memset(d->cptr, 0, sizeof(void *) *size_t(numBases)); d->hasOwnership = 1; d->containsCppWrapper = 0; d->validCppObject = 0; d->parentInfo = nullptr; d->referredObjects = nullptr; d->cppObjectCreated = 0; self->ob_dict = nullptr; self->weakreflist = nullptr; self->d = d; PyObject_GC_Track(obSelf); return obSelf; }