mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
This commit is contained in:
parent
22a9a546ff
commit
dffe4c0709
23 changed files with 56 additions and 57 deletions
|
@ -64,7 +64,7 @@ typedef struct {
|
|||
char *encoding;
|
||||
} PyCursesWindowObject;
|
||||
|
||||
#define PyCursesWindow_Check(v) (Py_TYPE(v) == &PyCursesWindow_Type)
|
||||
#define PyCursesWindow_Check(v) Py_IS_TYPE(v, &PyCursesWindow_Type)
|
||||
|
||||
#define PyCurses_CAPSULE_NAME "_curses._C_API"
|
||||
|
||||
|
@ -97,4 +97,3 @@ static const char catchall_NULL[] = "curses function returned NULL";
|
|||
|
||||
#endif /* !defined(Py_CURSES_H) */
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue