Cleanup: use C++ compatible struct declarations for Python API
Also add m_base & ob_base comments.
This commit is contained in:
@@ -47,7 +47,7 @@ static int Length2DBP1D___init__(BPy_Length2DBP1D *self, PyObject *args, PyObjec
|
||||
/*-----------------------BPy_Length2DBP1D type definition ------------------------------*/
|
||||
|
||||
PyTypeObject Length2DBP1D_Type = {
|
||||
PyVarObject_HEAD_INIT(nullptr, 0)
|
||||
/*ob_base*/ PyVarObject_HEAD_INIT(nullptr, 0)
|
||||
/*tp_name*/ "Length2DBP1D",
|
||||
/*tp_basicsize*/ sizeof(BPy_Length2DBP1D),
|
||||
/*tp_itemsize*/ 0,
|
||||
|
||||
Reference in New Issue
Block a user