bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)

This commit is contained in:
Dong-hee Na 2020-02-17 19:09:15 +09:00 committed by GitHub
parent a7847590f0
commit 1b55b65638
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 56 additions and 56 deletions

View file

@ -57,7 +57,7 @@ typedef struct {
#define PyStruct_Check(op) PyObject_TypeCheck(op, (PyTypeObject *)_structmodulestate_global->PyStructType)
#define PyStruct_CheckExact(op) (Py_TYPE(op) == (PyTypeObject *)_structmodulestate_global->PyStructType)
#define PyStruct_CheckExact(op) Py_IS_TYPE(op, (PyTypeObject *)_structmodulestate_global->PyStructType)
/* Define various structs to figure out the alignments of types */