Commit efdd520f authored by Kurt Smith's avatar Kurt Smith Committed by Mark Florisson

StructUtilityCode needed a default requires field

parent 5292701b
...@@ -2152,6 +2152,9 @@ class CFuncTypeArg(object): ...@@ -2152,6 +2152,9 @@ class CFuncTypeArg(object):
return CFuncTypeArg(self.name, self.type.specialize(values), self.pos, self.cname) return CFuncTypeArg(self.name, self.type.specialize(values), self.pos, self.cname)
class StructUtilityCode(object): class StructUtilityCode(object):
requires = None
def __init__(self, type, forward_decl): def __init__(self, type, forward_decl):
self.type = type self.type = type
self.header = "static PyObject* %s(%s)" % (type.to_py_function, type.declaration_code('s')) self.header = "static PyObject* %s(%s)" % (type.to_py_function, type.declaration_code('s'))
......
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