Swiftgram/SwiftSignalKitTests/DeallocatingObject.swift
2015-06-10 12:53:19 +03:00

20 lines
384 B
Swift

import Foundation
internal class DeallocatingObject : Printable {
private var deallocated: UnsafeMutablePointer<Bool>
init(deallocated: UnsafeMutablePointer<Bool>) {
self.deallocated = deallocated
}
deinit {
self.deallocated.memory = true
}
public var description: String {
get {
return ""
}
}
}