Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit df3f77f

Browse files
author
Anselm Kruis
committed
Stackless issue #137: Add Stackless support to "call" functions
Add Stackless support to _PyCFunction_FastCallKeywords().
1 parent 1ec09c4 commit df3f77f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objects/methodobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ PyObject *
260260
_PyCFunction_FastCallKeywords(PyObject *func, PyObject **stack,
261261
Py_ssize_t nargs, PyObject *kwnames)
262262
{
263+
STACKLESS_GETARG();
263264
PyObject *kwdict, *result;
264265
Py_ssize_t nkwargs;
265266

@@ -276,7 +277,9 @@ _PyCFunction_FastCallKeywords(PyObject *func, PyObject **stack,
276277
kwdict = NULL;
277278
}
278279

280+
STACKLESS_PROMOTE_ALL();
279281
result = _PyCFunction_FastCallDict(func, stack, nargs, kwdict);
282+
STACKLESS_ASSERT();
280283
Py_XDECREF(kwdict);
281284
return result;
282285
}

0 commit comments

Comments
 (0)