summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-19 21:24:35 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-19 21:24:35 (GMT)
commitf955784f0cfeecb94d3f2ade83a5ea548391f74b (patch)
tree3f112a082ca586d310f0a70001ab4bc14e087cca /Mac
parent5bb2f6497f6b4455e4da64ef049bf43cd1c2215a (diff)
downloadcpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.zip
cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.gz
cpython-f955784f0cfeecb94d3f2ade83a5ea548391f74b.tar.bz2
Regenerated with inheritance-aware xxxx_Check() macros.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Modules/ae/_AEmodule.c2
-rw-r--r--Mac/Modules/app/_Appmodule.c2
-rwxr-xr-xMac/Modules/carbonevt/_CarbonEvtmodule.c16
-rw-r--r--Mac/Modules/cf/_CFmodule.c20
-rwxr-xr-xMac/Modules/cg/_CGmodule.c2
-rw-r--r--Mac/Modules/cm/_Cmmodule.c4
-rw-r--r--Mac/Modules/ctl/_Ctlmodule.c2
-rw-r--r--Mac/Modules/dlg/_Dlgmodule.c2
-rw-r--r--Mac/Modules/drag/_Dragmodule.c2
-rw-r--r--Mac/Modules/file/_Filemodule.c6
-rw-r--r--Mac/Modules/ibcarbon/_IBCarbon.c2
-rw-r--r--Mac/Modules/list/_Listmodule.c2
-rw-r--r--Mac/Modules/menu/_Menumodule.c2
-rw-r--r--Mac/Modules/mlte/_Mltemodule.c4
-rw-r--r--Mac/Modules/qd/_Qdmodule.c4
-rw-r--r--Mac/Modules/qdoffs/_Qdoffsmodule.c2
-rw-r--r--Mac/Modules/qt/_Qtmodule.c12
-rw-r--r--Mac/Modules/res/_Resmodule.c2
-rw-r--r--Mac/Modules/snd/_Sndmodule.c4
-rw-r--r--Mac/Modules/te/_TEmodule.c2
-rw-r--r--Mac/Modules/waste/wastemodule.c4
-rw-r--r--Mac/Modules/win/_Winmodule.c2
22 files changed, 50 insertions, 50 deletions
diff --git a/Mac/Modules/ae/_AEmodule.c b/Mac/Modules/ae/_AEmodule.c
index 14f0305..b5b4cd6 100644
--- a/Mac/Modules/ae/_AEmodule.c
+++ b/Mac/Modules/ae/_AEmodule.c
@@ -65,7 +65,7 @@ static PyObject *AE_Error;
PyTypeObject AEDesc_Type;
-#define AEDesc_Check(x) ((x)->ob_type == &AEDesc_Type)
+#define AEDesc_Check(x) ((x)->ob_type == &AEDesc_Type || PyObject_TypeCheck((x), &AEDesc_Type))
typedef struct AEDescObject {
PyObject_HEAD
diff --git a/Mac/Modules/app/_Appmodule.c b/Mac/Modules/app/_Appmodule.c
index 365ace3..347cf5b 100644
--- a/Mac/Modules/app/_Appmodule.c
+++ b/Mac/Modules/app/_Appmodule.c
@@ -40,7 +40,7 @@ static PyObject *App_Error;
PyTypeObject ThemeDrawingState_Type;
-#define ThemeDrawingStateObj_Check(x) ((x)->ob_type == &ThemeDrawingState_Type)
+#define ThemeDrawingStateObj_Check(x) ((x)->ob_type == &ThemeDrawingState_Type || PyObject_TypeCheck((x), &ThemeDrawingState_Type))
typedef struct ThemeDrawingStateObject {
PyObject_HEAD
diff --git a/Mac/Modules/carbonevt/_CarbonEvtmodule.c b/Mac/Modules/carbonevt/_CarbonEvtmodule.c
index 2fa1e2c..86f67cf 100755
--- a/Mac/Modules/carbonevt/_CarbonEvtmodule.c
+++ b/Mac/Modules/carbonevt/_CarbonEvtmodule.c
@@ -142,7 +142,7 @@ static PyObject *CarbonEvents_Error;
PyTypeObject EventRef_Type;
-#define EventRef_Check(x) ((x)->ob_type == &EventRef_Type)
+#define EventRef_Check(x) ((x)->ob_type == &EventRef_Type || PyObject_TypeCheck((x), &EventRef_Type))
typedef struct EventRefObject {
PyObject_HEAD
@@ -486,7 +486,7 @@ PyTypeObject EventRef_Type = {
PyTypeObject EventQueueRef_Type;
-#define EventQueueRef_Check(x) ((x)->ob_type == &EventQueueRef_Type)
+#define EventQueueRef_Check(x) ((x)->ob_type == &EventQueueRef_Type || PyObject_TypeCheck((x), &EventQueueRef_Type))
typedef struct EventQueueRefObject {
PyObject_HEAD
@@ -706,7 +706,7 @@ PyTypeObject EventQueueRef_Type = {
PyTypeObject EventLoopRef_Type;
-#define EventLoopRef_Check(x) ((x)->ob_type == &EventLoopRef_Type)
+#define EventLoopRef_Check(x) ((x)->ob_type == &EventLoopRef_Type || PyObject_TypeCheck((x), &EventLoopRef_Type))
typedef struct EventLoopRefObject {
PyObject_HEAD
@@ -835,7 +835,7 @@ PyTypeObject EventLoopRef_Type = {
PyTypeObject EventLoopTimerRef_Type;
-#define EventLoopTimerRef_Check(x) ((x)->ob_type == &EventLoopTimerRef_Type)
+#define EventLoopTimerRef_Check(x) ((x)->ob_type == &EventLoopTimerRef_Type || PyObject_TypeCheck((x), &EventLoopTimerRef_Type))
typedef struct EventLoopTimerRefObject {
PyObject_HEAD
@@ -982,7 +982,7 @@ PyTypeObject EventLoopTimerRef_Type = {
PyTypeObject EventHandlerRef_Type;
-#define EventHandlerRef_Check(x) ((x)->ob_type == &EventHandlerRef_Type)
+#define EventHandlerRef_Check(x) ((x)->ob_type == &EventHandlerRef_Type || PyObject_TypeCheck((x), &EventHandlerRef_Type))
typedef struct EventHandlerRefObject {
PyObject_HEAD
@@ -1174,7 +1174,7 @@ PyTypeObject EventHandlerRef_Type = {
PyTypeObject EventHandlerCallRef_Type;
-#define EventHandlerCallRef_Check(x) ((x)->ob_type == &EventHandlerCallRef_Type)
+#define EventHandlerCallRef_Check(x) ((x)->ob_type == &EventHandlerCallRef_Type || PyObject_TypeCheck((x), &EventHandlerCallRef_Type))
typedef struct EventHandlerCallRefObject {
PyObject_HEAD
@@ -1306,7 +1306,7 @@ PyTypeObject EventHandlerCallRef_Type = {
PyTypeObject EventTargetRef_Type;
-#define EventTargetRef_Check(x) ((x)->ob_type == &EventTargetRef_Type)
+#define EventTargetRef_Check(x) ((x)->ob_type == &EventTargetRef_Type || PyObject_TypeCheck((x), &EventTargetRef_Type))
typedef struct EventTargetRefObject {
PyObject_HEAD
@@ -1460,7 +1460,7 @@ PyTypeObject EventTargetRef_Type = {
PyTypeObject EventHotKeyRef_Type;
-#define EventHotKeyRef_Check(x) ((x)->ob_type == &EventHotKeyRef_Type)
+#define EventHotKeyRef_Check(x) ((x)->ob_type == &EventHotKeyRef_Type || PyObject_TypeCheck((x), &EventHotKeyRef_Type))
typedef struct EventHotKeyRefObject {
PyObject_HEAD
diff --git a/Mac/Modules/cf/_CFmodule.c b/Mac/Modules/cf/_CFmodule.c
index 691378e..0847233 100644
--- a/Mac/Modules/cf/_CFmodule.c
+++ b/Mac/Modules/cf/_CFmodule.c
@@ -128,7 +128,7 @@ static PyObject *CF_Error;
PyTypeObject CFTypeRef_Type;
-#define CFTypeRefObj_Check(x) ((x)->ob_type == &CFTypeRef_Type)
+#define CFTypeRefObj_Check(x) ((x)->ob_type == &CFTypeRef_Type || PyObject_TypeCheck((x), &CFTypeRef_Type))
typedef struct CFTypeRefObject {
PyObject_HEAD
@@ -442,7 +442,7 @@ PyTypeObject CFTypeRef_Type = {
PyTypeObject CFArrayRef_Type;
-#define CFArrayRefObj_Check(x) ((x)->ob_type == &CFArrayRef_Type)
+#define CFArrayRefObj_Check(x) ((x)->ob_type == &CFArrayRef_Type || PyObject_TypeCheck((x), &CFArrayRef_Type))
typedef struct CFArrayRefObject {
PyObject_HEAD
@@ -598,7 +598,7 @@ PyTypeObject CFArrayRef_Type = {
PyTypeObject CFMutableArrayRef_Type;
-#define CFMutableArrayRefObj_Check(x) ((x)->ob_type == &CFMutableArrayRef_Type)
+#define CFMutableArrayRefObj_Check(x) ((x)->ob_type == &CFMutableArrayRef_Type || PyObject_TypeCheck((x), &CFMutableArrayRef_Type))
typedef struct CFMutableArrayRefObject {
PyObject_HEAD
@@ -783,7 +783,7 @@ PyTypeObject CFMutableArrayRef_Type = {
PyTypeObject CFDictionaryRef_Type;
-#define CFDictionaryRefObj_Check(x) ((x)->ob_type == &CFDictionaryRef_Type)
+#define CFDictionaryRefObj_Check(x) ((x)->ob_type == &CFDictionaryRef_Type || PyObject_TypeCheck((x), &CFDictionaryRef_Type))
typedef struct CFDictionaryRefObject {
PyObject_HEAD
@@ -921,7 +921,7 @@ PyTypeObject CFDictionaryRef_Type = {
PyTypeObject CFMutableDictionaryRef_Type;
-#define CFMutableDictionaryRefObj_Check(x) ((x)->ob_type == &CFMutableDictionaryRef_Type)
+#define CFMutableDictionaryRefObj_Check(x) ((x)->ob_type == &CFMutableDictionaryRef_Type || PyObject_TypeCheck((x), &CFMutableDictionaryRef_Type))
typedef struct CFMutableDictionaryRefObject {
PyObject_HEAD
@@ -1043,7 +1043,7 @@ PyTypeObject CFMutableDictionaryRef_Type = {
PyTypeObject CFDataRef_Type;
-#define CFDataRefObj_Check(x) ((x)->ob_type == &CFDataRef_Type)
+#define CFDataRefObj_Check(x) ((x)->ob_type == &CFDataRef_Type || PyObject_TypeCheck((x), &CFDataRef_Type))
typedef struct CFDataRefObject {
PyObject_HEAD
@@ -1219,7 +1219,7 @@ PyTypeObject CFDataRef_Type = {
PyTypeObject CFMutableDataRef_Type;
-#define CFMutableDataRefObj_Check(x) ((x)->ob_type == &CFMutableDataRef_Type)
+#define CFMutableDataRefObj_Check(x) ((x)->ob_type == &CFMutableDataRef_Type || PyObject_TypeCheck((x), &CFMutableDataRef_Type))
typedef struct CFMutableDataRefObject {
PyObject_HEAD
@@ -1429,7 +1429,7 @@ PyTypeObject CFMutableDataRef_Type = {
PyTypeObject CFStringRef_Type;
-#define CFStringRefObj_Check(x) ((x)->ob_type == &CFStringRef_Type)
+#define CFStringRefObj_Check(x) ((x)->ob_type == &CFStringRef_Type || PyObject_TypeCheck((x), &CFStringRef_Type))
typedef struct CFStringRefObject {
PyObject_HEAD
@@ -2114,7 +2114,7 @@ PyTypeObject CFStringRef_Type = {
PyTypeObject CFMutableStringRef_Type;
-#define CFMutableStringRefObj_Check(x) ((x)->ob_type == &CFMutableStringRef_Type)
+#define CFMutableStringRefObj_Check(x) ((x)->ob_type == &CFMutableStringRef_Type || PyObject_TypeCheck((x), &CFMutableStringRef_Type))
typedef struct CFMutableStringRefObject {
PyObject_HEAD
@@ -2447,7 +2447,7 @@ PyTypeObject CFMutableStringRef_Type = {
PyTypeObject CFURLRef_Type;
-#define CFURLRefObj_Check(x) ((x)->ob_type == &CFURLRef_Type)
+#define CFURLRefObj_Check(x) ((x)->ob_type == &CFURLRef_Type || PyObject_TypeCheck((x), &CFURLRef_Type))
typedef struct CFURLRefObject {
PyObject_HEAD
diff --git a/Mac/Modules/cg/_CGmodule.c b/Mac/Modules/cg/_CGmodule.c
index 5642164..fbafc6c 100755
--- a/Mac/Modules/cg/_CGmodule.c
+++ b/Mac/Modules/cg/_CGmodule.c
@@ -212,7 +212,7 @@ static PyObject *CG_Error;
PyTypeObject CGContextRef_Type;
-#define CGContextRefObj_Check(x) ((x)->ob_type == &CGContextRef_Type)
+#define CGContextRefObj_Check(x) ((x)->ob_type == &CGContextRef_Type || PyObject_TypeCheck((x), &CGContextRef_Type))
typedef struct CGContextRefObject {
PyObject_HEAD
diff --git a/Mac/Modules/cm/_Cmmodule.c b/Mac/Modules/cm/_Cmmodule.c
index e21e6b0..1eaa577 100644
--- a/Mac/Modules/cm/_Cmmodule.c
+++ b/Mac/Modules/cm/_Cmmodule.c
@@ -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
diff --git a/Mac/Modules/ctl/_Ctlmodule.c b/Mac/Modules/ctl/_Ctlmodule.c
index e9c946c..cc4bce2 100644
--- a/Mac/Modules/ctl/_Ctlmodule.c
+++ b/Mac/Modules/ctl/_Ctlmodule.c
@@ -145,7 +145,7 @@ static PyObject *Ctl_Error;
PyTypeObject Control_Type;
-#define CtlObj_Check(x) ((x)->ob_type == &Control_Type)
+#define CtlObj_Check(x) ((x)->ob_type == &Control_Type || PyObject_TypeCheck((x), &Control_Type))
typedef struct ControlObject {
PyObject_HEAD
diff --git a/Mac/Modules/dlg/_Dlgmodule.c b/Mac/Modules/dlg/_Dlgmodule.c
index 94f4fcb..50edc87 100644
--- a/Mac/Modules/dlg/_Dlgmodule.c
+++ b/Mac/Modules/dlg/_Dlgmodule.c
@@ -138,7 +138,7 @@ static PyObject *Dlg_Error;
PyTypeObject Dialog_Type;
-#define DlgObj_Check(x) ((x)->ob_type == &Dialog_Type)
+#define DlgObj_Check(x) ((x)->ob_type == &Dialog_Type || PyObject_TypeCheck((x), &Dialog_Type))
typedef struct DialogObject {
PyObject_HEAD
diff --git a/Mac/Modules/drag/_Dragmodule.c b/Mac/Modules/drag/_Dragmodule.c
index e628b83..1a9406f 100644
--- a/Mac/Modules/drag/_Dragmodule.c
+++ b/Mac/Modules/drag/_Dragmodule.c
@@ -49,7 +49,7 @@ static PyObject *Drag_Error;
PyTypeObject DragObj_Type;
-#define DragObj_Check(x) ((x)->ob_type == &DragObj_Type)
+#define DragObj_Check(x) ((x)->ob_type == &DragObj_Type || PyObject_TypeCheck((x), &DragObj_Type))
typedef struct DragObjObject {
PyObject_HEAD
diff --git a/Mac/Modules/file/_Filemodule.c b/Mac/Modules/file/_Filemodule.c
index 300fbaf..2bbc276 100644
--- a/Mac/Modules/file/_Filemodule.c
+++ b/Mac/Modules/file/_Filemodule.c
@@ -101,7 +101,7 @@ static PyObject *File_Error;
PyTypeObject Alias_Type;
-#define Alias_Check(x) ((x)->ob_type == &Alias_Type)
+#define Alias_Check(x) ((x)->ob_type == &Alias_Type || PyObject_TypeCheck((x), &Alias_Type))
typedef struct AliasObject {
PyObject_HEAD
@@ -447,7 +447,7 @@ PyTypeObject Alias_Type = {
PyTypeObject FSSpec_Type;
-#define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type)
+#define FSSpec_Check(x) ((x)->ob_type == &FSSpec_Type || PyObject_TypeCheck((x), &FSSpec_Type))
typedef struct FSSpecObject {
PyObject_HEAD
@@ -916,7 +916,7 @@ PyTypeObject FSSpec_Type = {
PyTypeObject FSRef_Type;
-#define FSRef_Check(x) ((x)->ob_type == &FSRef_Type)
+#define FSRef_Check(x) ((x)->ob_type == &FSRef_Type || PyObject_TypeCheck((x), &FSRef_Type))
typedef struct FSRefObject {
PyObject_HEAD
diff --git a/Mac/Modules/ibcarbon/_IBCarbon.c b/Mac/Modules/ibcarbon/_IBCarbon.c
index 02c50fe..d2eff02 100644
--- a/Mac/Modules/ibcarbon/_IBCarbon.c
+++ b/Mac/Modules/ibcarbon/_IBCarbon.c
@@ -26,7 +26,7 @@ static PyObject *IBCarbon_Error;
PyTypeObject IBNibRef_Type;
-#define IBNibRefObj_Check(x) ((x)->ob_type == &IBNibRef_Type)
+#define IBNibRefObj_Check(x) ((x)->ob_type == &IBNibRef_Type || PyObject_TypeCheck((x), &IBNibRef_Type))
typedef struct IBNibRefObject {
PyObject_HEAD
diff --git a/Mac/Modules/list/_Listmodule.c b/Mac/Modules/list/_Listmodule.c
index 7f36529..5cd007e 100644
--- a/Mac/Modules/list/_Listmodule.c
+++ b/Mac/Modules/list/_Listmodule.c
@@ -71,7 +71,7 @@ static PyObject *List_Error;
PyTypeObject List_Type;
-#define ListObj_Check(x) ((x)->ob_type == &List_Type)
+#define ListObj_Check(x) ((x)->ob_type == &List_Type || PyObject_TypeCheck((x), &List_Type))
typedef struct ListObject {
PyObject_HEAD
diff --git a/Mac/Modules/menu/_Menumodule.c b/Mac/Modules/menu/_Menumodule.c
index ecdd156..629adaf 100644
--- a/Mac/Modules/menu/_Menumodule.c
+++ b/Mac/Modules/menu/_Menumodule.c
@@ -79,7 +79,7 @@ static PyObject *Menu_Error;
PyTypeObject Menu_Type;
-#define MenuObj_Check(x) ((x)->ob_type == &Menu_Type)
+#define MenuObj_Check(x) ((x)->ob_type == &Menu_Type || PyObject_TypeCheck((x), &Menu_Type))
typedef struct MenuObject {
PyObject_HEAD
diff --git a/Mac/Modules/mlte/_Mltemodule.c b/Mac/Modules/mlte/_Mltemodule.c
index f481f52..dd30b97 100644
--- a/Mac/Modules/mlte/_Mltemodule.c
+++ b/Mac/Modules/mlte/_Mltemodule.c
@@ -95,7 +95,7 @@ static PyObject *Mlte_Error;
PyTypeObject TXNObject_Type;
-#define TXNObj_Check(x) ((x)->ob_type == &TXNObject_Type)
+#define TXNObj_Check(x) ((x)->ob_type == &TXNObject_Type || PyObject_TypeCheck((x), &TXNObject_Type))
typedef struct TXNObjectObject {
PyObject_HEAD
@@ -1347,7 +1347,7 @@ PyTypeObject TXNObject_Type = {
PyTypeObject TXNFontMenuObject_Type;
-#define TXNFontMenuObj_Check(x) ((x)->ob_type == &TXNFontMenuObject_Type)
+#define TXNFontMenuObj_Check(x) ((x)->ob_type == &TXNFontMenuObject_Type || PyObject_TypeCheck((x), &TXNFontMenuObject_Type))
typedef struct TXNFontMenuObjectObject {
PyObject_HEAD
diff --git a/Mac/Modules/qd/_Qdmodule.c b/Mac/Modules/qd/_Qdmodule.c
index 0db5299..c1690c1 100644
--- a/Mac/Modules/qd/_Qdmodule.c
+++ b/Mac/Modules/qd/_Qdmodule.c
@@ -145,7 +145,7 @@ static PyObject *Qd_Error;
PyTypeObject GrafPort_Type;
-#define GrafObj_Check(x) ((x)->ob_type == &GrafPort_Type)
+#define GrafObj_Check(x) ((x)->ob_type == &GrafPort_Type || PyObject_TypeCheck((x), &GrafPort_Type))
typedef struct GrafPortObject {
PyObject_HEAD
@@ -1137,7 +1137,7 @@ PyTypeObject GrafPort_Type = {
PyTypeObject BitMap_Type;
-#define BMObj_Check(x) ((x)->ob_type == &BitMap_Type)
+#define BMObj_Check(x) ((x)->ob_type == &BitMap_Type || PyObject_TypeCheck((x), &BitMap_Type))
typedef struct BitMapObject {
PyObject_HEAD
diff --git a/Mac/Modules/qdoffs/_Qdoffsmodule.c b/Mac/Modules/qdoffs/_Qdoffsmodule.c
index 3f5dd04..ea3d015 100644
--- a/Mac/Modules/qdoffs/_Qdoffsmodule.c
+++ b/Mac/Modules/qdoffs/_Qdoffsmodule.c
@@ -43,7 +43,7 @@ static PyObject *Qdoffs_Error;
PyTypeObject GWorld_Type;
-#define GWorldObj_Check(x) ((x)->ob_type == &GWorld_Type)
+#define GWorldObj_Check(x) ((x)->ob_type == &GWorld_Type || PyObject_TypeCheck((x), &GWorld_Type))
typedef struct GWorldObject {
PyObject_HEAD
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
diff --git a/Mac/Modules/res/_Resmodule.c b/Mac/Modules/res/_Resmodule.c
index 9ebfba2..e34c2c5 100644
--- a/Mac/Modules/res/_Resmodule.c
+++ b/Mac/Modules/res/_Resmodule.c
@@ -54,7 +54,7 @@ static PyObject *Res_Error;
PyTypeObject Resource_Type;
-#define ResObj_Check(x) ((x)->ob_type == &Resource_Type)
+#define ResObj_Check(x) ((x)->ob_type == &Resource_Type || PyObject_TypeCheck((x), &Resource_Type))
typedef struct ResourceObject {
PyObject_HEAD
diff --git a/Mac/Modules/snd/_Sndmodule.c b/Mac/Modules/snd/_Sndmodule.c
index 80b1e98..136504b 100644
--- a/Mac/Modules/snd/_Sndmodule.c
+++ b/Mac/Modules/snd/_Sndmodule.c
@@ -52,7 +52,7 @@ static PyObject *Snd_Error;
static PyTypeObject SndChannel_Type;
-#define SndCh_Check(x) ((x)->ob_type == &SndChannel_Type)
+#define SndCh_Check(x) ((x)->ob_type == &SndChannel_Type || PyObject_TypeCheck((x), &SndChannel_Type))
typedef struct SndChannelObject {
PyObject_HEAD
@@ -267,7 +267,7 @@ static PyTypeObject SndChannel_Type = {
static PyTypeObject SPB_Type;
-#define SPBObj_Check(x) ((x)->ob_type == &SPB_Type)
+#define SPBObj_Check(x) ((x)->ob_type == &SPB_Type || PyObject_TypeCheck((x), &SPB_Type))
typedef struct SPBObject {
PyObject_HEAD
diff --git a/Mac/Modules/te/_TEmodule.c b/Mac/Modules/te/_TEmodule.c
index 990efa2..ec5b9cb 100644
--- a/Mac/Modules/te/_TEmodule.c
+++ b/Mac/Modules/te/_TEmodule.c
@@ -67,7 +67,7 @@ static PyObject *TE_Error;
PyTypeObject TE_Type;
-#define TEObj_Check(x) ((x)->ob_type == &TE_Type)
+#define TEObj_Check(x) ((x)->ob_type == &TE_Type || PyObject_TypeCheck((x), &TE_Type))
typedef struct TEObject {
PyObject_HEAD
diff --git a/Mac/Modules/waste/wastemodule.c b/Mac/Modules/waste/wastemodule.c
index c5e3941..85159e5 100644
--- a/Mac/Modules/waste/wastemodule.c
+++ b/Mac/Modules/waste/wastemodule.c
@@ -205,7 +205,7 @@ static PyObject *waste_Error;
PyTypeObject WEO_Type;
-#define WEOObj_Check(x) ((x)->ob_type == &WEO_Type)
+#define WEOObj_Check(x) ((x)->ob_type == &WEO_Type || PyObject_TypeCheck((x), &WEO_Type))
typedef struct WEOObject {
PyObject_HEAD
@@ -458,7 +458,7 @@ PyTypeObject WEO_Type = {
PyTypeObject waste_Type;
-#define wasteObj_Check(x) ((x)->ob_type == &waste_Type)
+#define wasteObj_Check(x) ((x)->ob_type == &waste_Type || PyObject_TypeCheck((x), &waste_Type))
typedef struct wasteObject {
PyObject_HEAD
diff --git a/Mac/Modules/win/_Winmodule.c b/Mac/Modules/win/_Winmodule.c
index ef75cba..c0401e0 100644
--- a/Mac/Modules/win/_Winmodule.c
+++ b/Mac/Modules/win/_Winmodule.c
@@ -54,7 +54,7 @@ static PyObject *Win_Error;
PyTypeObject Window_Type;
-#define WinObj_Check(x) ((x)->ob_type == &Window_Type)
+#define WinObj_Check(x) ((x)->ob_type == &Window_Type || PyObject_TypeCheck((x), &Window_Type))
typedef struct WindowObject {
PyObject_HEAD