예제 #1
0
 def free_argument(self, space, arg, call_local):
     capi.c_destruct(
         space, self.cppclass,
         rffi.cast(capi.C_OBJECT,
                   rffi.cast(rffi.VOIDPP, arg)[0]))
예제 #2
0
 def destruct(self):
     assert isinstance(self, W_CPPInstance)
     if self._rawobject and not self.isref:
         memory_regulator.unregister(self)
         capi.c_destruct(self.cppclass, self._rawobject)
         self._rawobject = capi.C_NULL_OBJECT
예제 #3
0
파일: converter.py 프로젝트: Darriall/pypy
 def free_argument(self, space, arg, call_local):
     capi.c_destruct(space, self.cppclass, rffi.cast(capi.C_OBJECT, rffi.cast(rffi.VOIDPP, arg)[0]))