def free_argument(self, space, arg, call_local): capi.c_destruct( space, self.clsdecl, rffi.cast(capi.C_OBJECT, rffi.cast(rffi.VOIDPP, arg)[0]))
def execute(self, space, cppmethod, cppthis, num_args, args): cmplx = capi.c_call_o(space, cppmethod, cppthis, num_args, args, self.clsdecl) pycmplx = self._convert2complex(space, rffi.cast(capi.C_OBJECT, cmplx)) capi.c_destruct(space, self.clsdecl, cmplx) return pycmplx