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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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