commit | d905df766c367c350f20c46ccd99d4da19ed57d8 | [log] [tgz] |
---|---|---|
author | Dong-hee Na <donghee.na92@gmail.com> | Fri Feb 14 02:37:17 2020 +0900 |
committer | GitHub <noreply@github.com> | Thu Feb 13 18:37:17 2020 +0100 |
tree | 9e08a6c88d6b0dd4e73810c3f3a152b61bd773aa | |
parent | 968dcd9e7a4d3aa9aaa1dfca693adf60d6b71ce7 [diff] [blame] |
bpo-39573: Add Py_IS_TYPE() function (GH-18488) Co-Author: Neil Schemenauer <nas-github@arctrix.com>
diff --git a/Include/code.h b/Include/code.h index 3afddd2..107eba4 100644 --- a/Include/code.h +++ b/Include/code.h
@@ -115,7 +115,7 @@ PyAPI_DATA(PyTypeObject) PyCode_Type; -#define PyCode_Check(op) (Py_TYPE(op) == &PyCode_Type) +#define PyCode_Check(op) Py_IS_TYPE(op, &PyCode_Type) #define PyCode_GetNumFree(op) (PyTuple_GET_SIZE((op)->co_freevars)) /* Public interface */