mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
bpo-47164: Add _PyCFunction_CAST() macro (GH-32192)
Use the macro in C files of the Python/ directory.
This commit is contained in:
parent
c14d7e4b81
commit
f0bc694856
8 changed files with 57 additions and 36 deletions
|
@ -685,7 +685,7 @@ static PyMethodDef PyContext_methods[] = {
|
|||
_CONTEXTVARS_CONTEXT_KEYS_METHODDEF
|
||||
_CONTEXTVARS_CONTEXT_VALUES_METHODDEF
|
||||
_CONTEXTVARS_CONTEXT_COPY_METHODDEF
|
||||
{"run", (PyCFunction)(void(*)(void))context_run, METH_FASTCALL | METH_KEYWORDS, NULL},
|
||||
{"run", _PyCFunction_CAST(context_run), METH_FASTCALL | METH_KEYWORDS, NULL},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue