示例#1
0
 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]))
示例#2
0
文件: executor.py 项目: lvyitian/pypy
 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