Commit 0aaf087b authored by Robert Bradshaw's avatar Robert Bradshaw

Add missing CFuncConvert.pyx

parent 3b334601
#################### cfunc.to_py ####################
cdef extern from *:
ctypedef struct PyObject
ctypedef struct PyTypeObject
cdef bint __Pyx_TypeTest(PyObject*, PyTypeObject* type) except 0
{{for arg in args}}
{{arg.declare_type_def()}}
{{arg.declare_type_convert()}}
{{endfor}}
{{declare_return_type}}
{{declare_return_type_convert}}
@cname("{{cname}}")
cdef object {{cname}}({{return_type}} (*f)({{', '.join(arg.type_name for arg in args)}}) {{except_clause}}):
def wrap({{', '.join(arg.name for arg in args)}}):
{{for arg in args}}
{{arg.check_type()}}
{{endfor}}
{{maybe_return}} (f({{', '.join('%s(%s)' % (arg.type_convert, arg.name) for arg in args)}}))
return wrap
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