Py3.13: Initialize field tp_versions_used
This commit is contained in:
@@ -46,7 +46,9 @@
|
||||
virtual ~_class_(); \
|
||||
};
|
||||
|
||||
#if PY_VERSION_HEX >= 0x030c0000
|
||||
#if PY_VERSION_HEX >= 0x030d0000
|
||||
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
#elif PY_VERSION_HEX >= 0x030c0000
|
||||
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
#else
|
||||
#define PYTHON_TYPE_SLOTS 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
|
||||
@@ -83,6 +83,9 @@ PyTypeObject FeaturePythonPyT<FeaturePyT>::Type = {
|
||||
#if PY_VERSION_HEX >= 0x030c0000
|
||||
,0 /*tp_watched */
|
||||
#endif
|
||||
#if PY_VERSION_HEX >= 0x030d0000
|
||||
,0 /*tp_versions_used */
|
||||
#endif
|
||||
};
|
||||
|
||||
template<class FeaturePyT>
|
||||
|
||||
Reference in New Issue
Block a user