There was an error while loading. Please reload this page.
1 parent 3b69d91 commit 64fa449Copy full SHA for 64fa449
1 file changed
Modules/_testcapimodule.c
@@ -4272,6 +4272,13 @@ test_pyobject_fastcallkeywords(PyObject *self, PyObject *args)
4272
return _PyObject_FastCallKeywords(func, stack, nargs, kwnames);
4273
}
4274
4275
+static PyObject*
4276
+stack_pointer(PyObject *self, PyObject *args)
4277
+{
4278
+ int v = 5;
4279
+ return PyLong_FromVoidPtr(&v);
4280
+}
4281
+
4282
4283
static PyMethodDef TestMethods[] = {
4284
{"raise_exception", raise_exception, METH_VARARGS},
@@ -4485,6 +4492,7 @@ static PyMethodDef TestMethods[] = {
4485
4492
{"pyobject_fastcall", test_pyobject_fastcall, METH_VARARGS},
4486
4493
{"pyobject_fastcalldict", test_pyobject_fastcalldict, METH_VARARGS},
4487
4494
{"pyobject_fastcallkeywords", test_pyobject_fastcallkeywords, METH_VARARGS},
4495
+ {"stack_pointer", stack_pointer, METH_NOARGS},
4488
4496
{NULL, NULL} /* sentinel */
4489
4497
};
4490
4498
0 commit comments