mirror of https://github.com/python/cpython.git
Regenerated with inheritance-aware xxxx_Check() macros.
This commit is contained in:
parent
5bb2f6497f
commit
f955784f0c
|
@ -65,7 +65,7 @@ static PyObject *AE_Error;
|
||||||
|
|
||||||
PyTypeObject AEDesc_Type;
|
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 {
|
typedef struct AEDescObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -40,7 +40,7 @@ static PyObject *App_Error;
|
||||||
|
|
||||||
PyTypeObject ThemeDrawingState_Type;
|
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 {
|
typedef struct ThemeDrawingStateObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -142,7 +142,7 @@ static PyObject *CarbonEvents_Error;
|
||||||
|
|
||||||
PyTypeObject EventRef_Type;
|
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 {
|
typedef struct EventRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -486,7 +486,7 @@ PyTypeObject EventRef_Type = {
|
||||||
|
|
||||||
PyTypeObject EventQueueRef_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 {
|
typedef struct EventQueueRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -706,7 +706,7 @@ PyTypeObject EventQueueRef_Type = {
|
||||||
|
|
||||||
PyTypeObject EventLoopRef_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 {
|
typedef struct EventLoopRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -835,7 +835,7 @@ PyTypeObject EventLoopRef_Type = {
|
||||||
|
|
||||||
PyTypeObject EventLoopTimerRef_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 {
|
typedef struct EventLoopTimerRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -982,7 +982,7 @@ PyTypeObject EventLoopTimerRef_Type = {
|
||||||
|
|
||||||
PyTypeObject EventHandlerRef_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 {
|
typedef struct EventHandlerRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1174,7 +1174,7 @@ PyTypeObject EventHandlerRef_Type = {
|
||||||
|
|
||||||
PyTypeObject EventHandlerCallRef_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 {
|
typedef struct EventHandlerCallRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1306,7 +1306,7 @@ PyTypeObject EventHandlerCallRef_Type = {
|
||||||
|
|
||||||
PyTypeObject EventTargetRef_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 {
|
typedef struct EventTargetRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1460,7 +1460,7 @@ PyTypeObject EventTargetRef_Type = {
|
||||||
|
|
||||||
PyTypeObject EventHotKeyRef_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 {
|
typedef struct EventHotKeyRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -128,7 +128,7 @@ static PyObject *CF_Error;
|
||||||
|
|
||||||
PyTypeObject CFTypeRef_Type;
|
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 {
|
typedef struct CFTypeRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -442,7 +442,7 @@ PyTypeObject CFTypeRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFArrayRef_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 {
|
typedef struct CFArrayRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -598,7 +598,7 @@ PyTypeObject CFArrayRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFMutableArrayRef_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 {
|
typedef struct CFMutableArrayRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -783,7 +783,7 @@ PyTypeObject CFMutableArrayRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFDictionaryRef_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 {
|
typedef struct CFDictionaryRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -921,7 +921,7 @@ PyTypeObject CFDictionaryRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFMutableDictionaryRef_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 {
|
typedef struct CFMutableDictionaryRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1043,7 +1043,7 @@ PyTypeObject CFMutableDictionaryRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFDataRef_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 {
|
typedef struct CFDataRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1219,7 +1219,7 @@ PyTypeObject CFDataRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFMutableDataRef_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 {
|
typedef struct CFMutableDataRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1429,7 +1429,7 @@ PyTypeObject CFMutableDataRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFStringRef_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 {
|
typedef struct CFStringRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -2114,7 +2114,7 @@ PyTypeObject CFStringRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFMutableStringRef_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 {
|
typedef struct CFMutableStringRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -2447,7 +2447,7 @@ PyTypeObject CFMutableStringRef_Type = {
|
||||||
|
|
||||||
PyTypeObject CFURLRef_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 {
|
typedef struct CFURLRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -212,7 +212,7 @@ static PyObject *CG_Error;
|
||||||
|
|
||||||
PyTypeObject CGContextRef_Type;
|
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 {
|
typedef struct CGContextRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -69,7 +69,7 @@ static PyObject *Cm_Error;
|
||||||
|
|
||||||
PyTypeObject ComponentInstance_Type;
|
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 {
|
typedef struct ComponentInstanceObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -335,7 +335,7 @@ PyTypeObject ComponentInstance_Type = {
|
||||||
|
|
||||||
PyTypeObject Component_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 {
|
typedef struct ComponentObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -145,7 +145,7 @@ static PyObject *Ctl_Error;
|
||||||
|
|
||||||
PyTypeObject Control_Type;
|
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 {
|
typedef struct ControlObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -138,7 +138,7 @@ static PyObject *Dlg_Error;
|
||||||
|
|
||||||
PyTypeObject Dialog_Type;
|
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 {
|
typedef struct DialogObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -49,7 +49,7 @@ static PyObject *Drag_Error;
|
||||||
|
|
||||||
PyTypeObject DragObj_Type;
|
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 {
|
typedef struct DragObjObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -101,7 +101,7 @@ static PyObject *File_Error;
|
||||||
|
|
||||||
PyTypeObject Alias_Type;
|
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 {
|
typedef struct AliasObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -447,7 +447,7 @@ PyTypeObject Alias_Type = {
|
||||||
|
|
||||||
PyTypeObject FSSpec_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 {
|
typedef struct FSSpecObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -916,7 +916,7 @@ PyTypeObject FSSpec_Type = {
|
||||||
|
|
||||||
PyTypeObject FSRef_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 {
|
typedef struct FSRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -26,7 +26,7 @@ static PyObject *IBCarbon_Error;
|
||||||
|
|
||||||
PyTypeObject IBNibRef_Type;
|
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 {
|
typedef struct IBNibRefObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -71,7 +71,7 @@ static PyObject *List_Error;
|
||||||
|
|
||||||
PyTypeObject List_Type;
|
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 {
|
typedef struct ListObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -79,7 +79,7 @@ static PyObject *Menu_Error;
|
||||||
|
|
||||||
PyTypeObject Menu_Type;
|
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 {
|
typedef struct MenuObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -95,7 +95,7 @@ static PyObject *Mlte_Error;
|
||||||
|
|
||||||
PyTypeObject TXNObject_Type;
|
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 {
|
typedef struct TXNObjectObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1347,7 +1347,7 @@ PyTypeObject TXNObject_Type = {
|
||||||
|
|
||||||
PyTypeObject TXNFontMenuObject_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 {
|
typedef struct TXNFontMenuObjectObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -145,7 +145,7 @@ static PyObject *Qd_Error;
|
||||||
|
|
||||||
PyTypeObject GrafPort_Type;
|
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 {
|
typedef struct GrafPortObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1137,7 +1137,7 @@ PyTypeObject GrafPort_Type = {
|
||||||
|
|
||||||
PyTypeObject BitMap_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 {
|
typedef struct BitMapObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -43,7 +43,7 @@ static PyObject *Qdoffs_Error;
|
||||||
|
|
||||||
PyTypeObject GWorld_Type;
|
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 {
|
typedef struct GWorldObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -97,7 +97,7 @@ static PyObject *Qt_Error;
|
||||||
|
|
||||||
PyTypeObject MovieController_Type;
|
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 {
|
typedef struct MovieControllerObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1168,7 +1168,7 @@ PyTypeObject MovieController_Type = {
|
||||||
|
|
||||||
PyTypeObject TimeBase_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 {
|
typedef struct TimeBaseObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1656,7 +1656,7 @@ PyTypeObject TimeBase_Type = {
|
||||||
|
|
||||||
PyTypeObject UserData_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 {
|
typedef struct UserDataObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -1997,7 +1997,7 @@ PyTypeObject UserData_Type = {
|
||||||
|
|
||||||
PyTypeObject Media_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 {
|
typedef struct MediaObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -3209,7 +3209,7 @@ PyTypeObject Media_Type = {
|
||||||
|
|
||||||
PyTypeObject Track_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 {
|
typedef struct TrackObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -4527,7 +4527,7 @@ PyTypeObject Track_Type = {
|
||||||
|
|
||||||
PyTypeObject Movie_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 {
|
typedef struct MovieObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -54,7 +54,7 @@ static PyObject *Res_Error;
|
||||||
|
|
||||||
PyTypeObject Resource_Type;
|
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 {
|
typedef struct ResourceObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -52,7 +52,7 @@ static PyObject *Snd_Error;
|
||||||
|
|
||||||
static PyTypeObject SndChannel_Type;
|
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 {
|
typedef struct SndChannelObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -267,7 +267,7 @@ static PyTypeObject SndChannel_Type = {
|
||||||
|
|
||||||
static PyTypeObject SPB_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 {
|
typedef struct SPBObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -67,7 +67,7 @@ static PyObject *TE_Error;
|
||||||
|
|
||||||
PyTypeObject TE_Type;
|
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 {
|
typedef struct TEObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -205,7 +205,7 @@ static PyObject *waste_Error;
|
||||||
|
|
||||||
PyTypeObject WEO_Type;
|
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 {
|
typedef struct WEOObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
@ -458,7 +458,7 @@ PyTypeObject WEO_Type = {
|
||||||
|
|
||||||
PyTypeObject waste_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 {
|
typedef struct wasteObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
|
@ -54,7 +54,7 @@ static PyObject *Win_Error;
|
||||||
|
|
||||||
PyTypeObject Window_Type;
|
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 {
|
typedef struct WindowObject {
|
||||||
PyObject_HEAD
|
PyObject_HEAD
|
||||||
|
|
Loading…
Reference in New Issue