Use symbolic name for METH_VARAGS.

This commit is contained in:
Georg Brandl 2007-09-01 15:25:27 +00:00
parent f2fc934a77
commit 34cb852611

View File

@ -68,7 +68,7 @@ class BaseFunctionGenerator:
if self.condition:
Output()
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))
if self.condition:
Output("#endif")