| 1806 | } |
| 1807 | |
| 1808 | static void dealloc(Derived* self) |
| 1809 | { |
| 1810 | self->~Derived(); |
| 1811 | |
| 1812 | auto* cobj = static_cast<CObject<Derived>*>(self); |
| 1813 | Py_XDECREF(cobj->managedDict); |
| 1814 | Py_XDECREF(cobj->managedWeakList); |
| 1815 | |
| 1816 | if (PyType_HasFeature(Py_TYPE(self), Py_TPFLAGS_HAVE_GC)) |
| 1817 | { |
| 1818 | PyObject_GC_Del(self); |
| 1819 | } |
| 1820 | else |
| 1821 | { |
| 1822 | PyObject_Free(self); |
| 1823 | } |
| 1824 | } |
| 1825 | |
| 1826 | using _InitArgs = std::tuple<>; |
| 1827 |
nothing calls this directly
no outgoing calls
no test coverage detected