diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-19 21:24:35 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2002-12-19 21:24:35 (GMT) |
commit | f955784f0cfeecb94d3f2ade83a5ea548391f74b (patch) | |
tree | 3f112a082ca586d310f0a70001ab4bc14e087cca /Mac/Modules/qt | |
parent | 5bb2f6497f6b4455e4da64ef049bf43cd1c2215a (diff) | |
download | cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.zip cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.gz cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.bz2 |
Regenerated with inheritance-aware xxxx_Check() macros.
Diffstat (limited to 'Mac/Modules/qt')
-rw-r--r-- | Mac/Modules/qt/_Qtmodule.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Mac/Modules/qt/_Qtmodule.c b/Mac/Modules/qt/_Qtmodule.c index bd9f59c..83c6bac 100644 --- a/Mac/Modules/qt/_Qtmodule.c +++ b/Mac/Modules/qt/_Qtmodule.c @@ -97,7 +97,7 @@ static PyObject *Qt_Error; PyTypeObject MovieController_Type; -#define MovieCtlObj_Check(x) ((x)->ob_type == &MovieController_Type) +#define MovieCtlObj_Check(x) ((x)->ob_type == &MovieController_Type || PyObject_TypeCheck((x), &MovieController_Type)) typedef struct MovieControllerObject { PyObject_HEAD @@ -1168,7 +1168,7 @@ PyTypeObject MovieController_Type = { PyTypeObject TimeBase_Type; -#define TimeBaseObj_Check(x) ((x)->ob_type == &TimeBase_Type) +#define TimeBaseObj_Check(x) ((x)->ob_type == &TimeBase_Type || PyObject_TypeCheck((x), &TimeBase_Type)) typedef struct TimeBaseObject { PyObject_HEAD @@ -1656,7 +1656,7 @@ PyTypeObject TimeBase_Type = { PyTypeObject UserData_Type; -#define UserDataObj_Check(x) ((x)->ob_type == &UserData_Type) +#define UserDataObj_Check(x) ((x)->ob_type == &UserData_Type || PyObject_TypeCheck((x), &UserData_Type)) typedef struct UserDataObject { PyObject_HEAD @@ -1997,7 +1997,7 @@ PyTypeObject UserData_Type = { PyTypeObject Media_Type; -#define MediaObj_Check(x) ((x)->ob_type == &Media_Type) +#define MediaObj_Check(x) ((x)->ob_type == &Media_Type || PyObject_TypeCheck((x), &Media_Type)) typedef struct MediaObject { PyObject_HEAD @@ -3209,7 +3209,7 @@ PyTypeObject Media_Type = { PyTypeObject Track_Type; -#define TrackObj_Check(x) ((x)->ob_type == &Track_Type) +#define TrackObj_Check(x) ((x)->ob_type == &Track_Type || PyObject_TypeCheck((x), &Track_Type)) typedef struct TrackObject { PyObject_HEAD @@ -4527,7 +4527,7 @@ PyTypeObject Track_Type = { PyTypeObject Movie_Type; -#define MovieObj_Check(x) ((x)->ob_type == &Movie_Type) +#define MovieObj_Check(x) ((x)->ob_type == &Movie_Type || PyObject_TypeCheck((x), &Movie_Type)) typedef struct MovieObject { PyObject_HEAD |