MCPcopy Create free account
hub / github.com/bab2min/tomotopy / dealloc

Method dealloc

src/python/handler/PyUtils.h:1905–1919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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...>)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected