diff options
| author | Victor Stinner <vstinner@python.org> | 2022-03-31 08:03:13 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-31 08:03:13 (GMT) |
| commit | 7fc39a21cb85163a456eab91b52e5fe85e7f7e3e (patch) | |
| tree | 98906f50347a47f64e17d990751c6e7067dafa01 /Python/specialize.c | |
| parent | f0bc69485677ae8973685866ada0982976d3878f (diff) | |
| download | cpython-7fc39a21cb85163a456eab91b52e5fe85e7f7e3e.zip cpython-7fc39a21cb85163a456eab91b52e5fe85e7f7e3e.tar.gz cpython-7fc39a21cb85163a456eab91b52e5fe85e7f7e3e.tar.bz2 | |
bpo-47164: Add _PyCFunctionObject_CAST() macr (GH-32190)
Add _PyCFunctionObject_CAST() and _PyCMethodObject_CAST() macros to
make macros casting their argument easier to read, but also to check
the type of their input in debug mode: assert(PyCFunction_Check(func)
and assert(PyCMethod_Check(func).
Reformat also PyCFunction_XXX() macros for readability.
Diffstat (limited to 'Python/specialize.c')
0 files changed, 0 insertions, 0 deletions
