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

Commit dea7004

Browse files
author
Anselm Kruis
committed
Stackless issue #137: Add Stackless support to "call" functions
Add Stackless support to _PyMethodDescr_FastCallKeywords().
1 parent d06c912 commit dea7004

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Objects/descrobject.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ _PyMethodDescr_FastCallKeywords(PyObject *descrobj,
256256
PyObject **args, Py_ssize_t nargs,
257257
PyObject *kwnames)
258258
{
259+
STACKLESS_GETARG();
259260
assert(Py_TYPE(descrobj) == &PyMethodDescr_Type);
260261
PyMethodDescrObject *descr = (PyMethodDescrObject *)descrobj;
261262
PyObject *self, *result;
@@ -282,8 +283,10 @@ _PyMethodDescr_FastCallKeywords(PyObject *descrobj,
282283
return NULL;
283284
}
284285

286+
STACKLESS_PROMOTE_ALL();
285287
result = _PyMethodDef_RawFastCallKeywords(descr->d_method, self,
286288
args+1, nargs-1, kwnames);
289+
STACKLESS_ASSERT();
287290
result = _Py_CheckFunctionResult((PyObject *)descr, result, NULL);
288291
return result;
289292
}

0 commit comments

Comments
 (0)