Commit 34cb8526 authored by Georg Brandl's avatar Georg Brandl

Use symbolic name for METH_VARAGS.

parent f2fc934a
...@@ -68,7 +68,7 @@ class BaseFunctionGenerator: ...@@ -68,7 +68,7 @@ class BaseFunctionGenerator:
if self.condition: if self.condition:
Output() Output()
Output(self.condition) Output(self.condition)
Output("{\"%s\", (PyCFunction)%s_%s, 1,", name, self.prefix, self.name) Output("{\"%s\", (PyCFunction)%s_%s, METH_VARARGS,", name, self.prefix, self.name)
Output(" PyDoc_STR(%s)},", stringify(docstring)) Output(" PyDoc_STR(%s)},", stringify(docstring))
if self.condition: if self.condition:
Output("#endif") Output("#endif")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment