Cleanup: use C++ compatible struct declarations for Python API
Also add m_base & ob_base comments.
This commit is contained in:
@@ -445,7 +445,8 @@ static PyGetSetDef BPy_SVertex_getseters[] = {
|
||||
/*-----------------------BPy_SVertex type definition ------------------------------*/
|
||||
|
||||
PyTypeObject SVertex_Type = {
|
||||
/*tp_name*/ PyVarObject_HEAD_INIT(nullptr, 0) "SVertex",
|
||||
/*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
|
||||
/*tp_name*/ "SVertex",
|
||||
/*tp_basicsize*/ sizeof(BPy_SVertex),
|
||||
/*tp_itemsize*/ 0,
|
||||
/*tp_dealloc*/ nullptr,
|
||||
@@ -481,7 +482,7 @@ PyTypeObject SVertex_Type = {
|
||||
/*tp_dictoffset*/ 0,
|
||||
/*tp_init*/ (initproc)SVertex_init,
|
||||
/*tp_alloc*/ nullptr,
|
||||
nullptr, /*tp_new*/
|
||||
/*tp_new*/ nullptr,
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user