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]))
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
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]))