mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue