diff options
author | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 +0000 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-12-19 02:37:44 +0000 |
commit | e93237dfcc4ee4feee62adafb4e7899487ca864b (patch) | |
tree | b78abc265e7fb10639492f62e4ffd0ce1bcc67af /Include/boolobject.h | |
parent | d586559c31b77938b514cec99f2f8b431a34dff5 (diff) | |
download | cpython-git-e93237dfcc4ee4feee62adafb4e7899487ca864b.tar.gz |
#1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
Diffstat (limited to 'Include/boolobject.h')
-rw-r--r-- | Include/boolobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/boolobject.h b/Include/boolobject.h index 6499345cec..74e854f706 100644 --- a/Include/boolobject.h +++ b/Include/boolobject.h @@ -11,7 +11,7 @@ typedef PyIntObject PyBoolObject; PyAPI_DATA(PyTypeObject) PyBool_Type; -#define PyBool_Check(x) (Py_Type(x) == &PyBool_Type) +#define PyBool_Check(x) (Py_TYPE(x) == &PyBool_Type) /* Py_False and Py_True are the only two bools in existence. Don't forget to apply Py_INCREF() when returning either!!! */ |