Cleanup: use C++ compatible struct declarations for Python API

Also add m_base & ob_base comments.
This commit is contained in:
Campbell Barton
2023-07-16 17:43:31 +10:00
parent ee5501750c
commit d594954bf2
207 changed files with 1116 additions and 388 deletions

View File

@@ -151,7 +151,8 @@ static PyGetSetDef BPy_ViewVertex_getseters[] = {
/*-----------------------BPy_ViewVertex type definition ------------------------------*/
PyTypeObject ViewVertex_Type = {
/*tp_name*/ PyVarObject_HEAD_INIT(nullptr, 0) "ViewVertex",
/*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
/*tp_name*/ "ViewVertex",
/*tp_basicsize*/ sizeof(BPy_ViewVertex),
/*tp_itemsize*/ 0,
/*tp_dealloc*/ nullptr,
@@ -187,7 +188,7 @@ PyTypeObject ViewVertex_Type = {
/*tp_dictoffset*/ 0,
/*tp_init*/ (initproc)ViewVertex_init,
/*tp_alloc*/ nullptr,
nullptr, /*tp_new*/
/*tp_new*/ nullptr,
};
///////////////////////////////////////////////////////////////////////////////////////////