Exemplo n.º 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]))
Exemplo n.º 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
Exemplo n.º 3
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]))