We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c392b13 commit 63e3c03Copy full SHA for 63e3c03
1 file changed
Include/boolobject.h
@@ -12,8 +12,10 @@ extern "C" {
12
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= _Py_PACK_VERSION(3, 16)
13
PyAPI_FUNC(int) PyBool_Check(PyObject *x);
14
#endif
15
-#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x03100000
+#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < _Py_PACK_VERSION(3, 16)
16
# define PyBool_Check(x) Py_IS_TYPE((x), &PyBool_Type)
17
+#else
18
+# define PyBool_Check(x) PyBool_Check(_PyObject_CAST(x))
19
20
21
/* Py_False and Py_True are the only two bools in existence. */
0 commit comments