SIGN IN SIGN UP

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.
V
Victor Stinner committed
7fc39a21cb85163a456eab91b52e5fe85e7f7e3e
Parent: f0bc694
Committed by GitHub <noreply@github.com> on 3/31/2022, 8:03:13 AM