Commit dccf5885 authored by Stefan Behnel's avatar Stefan Behnel

Allow utility code for declared C properties.

parent 81a8955c
......@@ -2413,7 +2413,8 @@ class CClassScope(ClassScope):
return entry
def declare_cproperty(self, name, type, cfunc_name, doc=None, pos=None, visibility='extern',
nogil=False, with_gil=False, exception_value=None, exception_check=False):
nogil=False, with_gil=False, exception_value=None, exception_check=False,
utility_code=None):
"""Internal convenience method to declare a C property function in one go.
"""
property_entry = self.declare_property(name, doc=doc, ctype=type, pos=pos)
......@@ -2428,6 +2429,7 @@ class CClassScope(ClassScope):
exception_check=exception_check,
),
cname=cfunc_name,
utility_code=utility_code,
visibility=visibility,
pos=pos,
)
......
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