]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46417: Add _PyType_CAST() macro (GH-30760)
authorVictor Stinner <vstinner@python.org>
Fri, 21 Jan 2022 20:39:01 +0000 (21:39 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 20:39:01 +0000 (21:39 +0100)
commitbc67f189fdd62ed42013fa05cd0ef2df498f5967
treefdec1f248f48b03bbeed0eadce53f63081773b3f
parent60705cff70576482fea31dcafbf8a37cbb751ea5
bpo-46417: Add _PyType_CAST() macro (GH-30760)

In debug mode, the macro makes sure that its argument is a type using
an assertion.
Include/object.h
Include/py_curses.h
Objects/typeobject.c