File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
graalpython/com.oracle.graal.python.test/src/tests/cpyext Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,7 @@ def file_not_empty(path):
201
201
static PyObject* test_{capifunction}(PyObject* module, PyObject* args) {{
202
202
PyObject* ___arg;
203
203
{argumentdeclarations};
204
+ #ifndef NOARGS
204
205
if (!PyArg_ParseTuple(args, "O", &___arg)) {{
205
206
return NULL;
206
207
}}
@@ -214,6 +215,7 @@ def file_not_empty(path):
214
215
else {{
215
216
{singleargumentname} = ___arg;
216
217
}}
218
+ #endif
217
219
#endif
218
220
{callfunction}({argumentnames});
219
221
return Py_BuildValue("{resultspec}", {resultval});
Original file line number Diff line number Diff line change @@ -393,6 +393,7 @@ def compile_module(self, name):
393
393
}
394
394
""" ,
395
395
resultspec = "O" ,
396
+ arguments = [],
396
397
callfunction = "wrap_PyErr_Fetch_tb_from_c" ,
397
398
cmpfunc = compare_tracebacks ,
398
399
)
You can’t perform that action at this time.
0 commit comments