Cleanup: use C++ compatible struct declarations for Python API
Also add m_base & ob_base comments.
This commit is contained in:
@@ -170,7 +170,7 @@ static PyGetSetDef BPy_ViewMap_getseters[] = {
|
||||
/*-----------------------BPy_ViewMap type definition ------------------------------*/
|
||||
|
||||
PyTypeObject ViewMap_Type = {
|
||||
PyVarObject_HEAD_INIT(nullptr, 0)
|
||||
/*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
|
||||
/*tp_name*/ "ViewMap",
|
||||
/*tp_basicsize*/ sizeof(BPy_ViewMap),
|
||||
/*tp_itemsize*/ 0,
|
||||
|
||||
Reference in New Issue
Block a user