mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-87347: Add parenthesis around macro arguments (#93915)
Add unit test on Py_MEMBER_SIZE() and some other macros.
This commit is contained in:
parent
61f24e7885
commit
7ad6f74fcf
30 changed files with 171 additions and 143 deletions
|
@ -65,7 +65,7 @@ PyAPI_FUNC(const char *) PyExceptionClass_Name(PyObject *);
|
|||
#define PyExceptionInstance_Class(x) _PyObject_CAST(Py_TYPE(x))
|
||||
|
||||
#define _PyBaseExceptionGroup_Check(x) \
|
||||
PyObject_TypeCheck(x, (PyTypeObject *)PyExc_BaseExceptionGroup)
|
||||
PyObject_TypeCheck((x), (PyTypeObject *)PyExc_BaseExceptionGroup)
|
||||
|
||||
/* Predefined exceptions */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue