mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Regenerated with inheritance-aware xxxx_Check() macros.
This commit is contained in:
parent
5bb2f6497f
commit
f955784f0c
22 changed files with 50 additions and 50 deletions
|
@ -69,7 +69,7 @@ static PyObject *Cm_Error;
|
|||
|
||||
PyTypeObject ComponentInstance_Type;
|
||||
|
||||
#define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type)
|
||||
#define CmpInstObj_Check(x) ((x)->ob_type == &ComponentInstance_Type || PyObject_TypeCheck((x), &ComponentInstance_Type))
|
||||
|
||||
typedef struct ComponentInstanceObject {
|
||||
PyObject_HEAD
|
||||
|
@ -335,7 +335,7 @@ PyTypeObject ComponentInstance_Type = {
|
|||
|
||||
PyTypeObject Component_Type;
|
||||
|
||||
#define CmpObj_Check(x) ((x)->ob_type == &Component_Type)
|
||||
#define CmpObj_Check(x) ((x)->ob_type == &Component_Type || PyObject_TypeCheck((x), &Component_Type))
|
||||
|
||||
typedef struct ComponentObject {
|
||||
PyObject_HEAD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue