| 1903 | } |
| 1904 | |
| 1905 | static void dealloc(PObject* self) |
| 1906 | { |
| 1907 | self->value.~Ty(); |
| 1908 | Py_XDECREF(self->managedDict); |
| 1909 | Py_XDECREF(self->managedWeakList); |
| 1910 | |
| 1911 | if (PyType_HasFeature(Py_TYPE(self), Py_TPFLAGS_HAVE_GC)) |
| 1912 | { |
| 1913 | PyObject_GC_Del(self); |
| 1914 | } |
| 1915 | else |
| 1916 | { |
| 1917 | PyObject_Free(self); |
| 1918 | } |
| 1919 | } |
| 1920 | |
| 1921 | template<class InitArgs, size_t ...idx> |
| 1922 | PY_STRONG_INLINE static void initFromPython(PObject* self, PyObject* args, std::index_sequence<idx...>) |
nothing calls this directly
no outgoing calls
no test coverage detected