 import Bluetooth
 import GATT
 
+#if os(macOS)
 internal struct PeripheralContinuation<T, E> where E: Error {
     
-    typealias Peripheral = DarwinCentral.Peripheral
+    static var log: (String) -> () = {
+        #if DEBUG
+        print($0)
+        #endif
+    }
     
     private let function: String
     

        body(PeripheralContinuation(continuation: $0, function: function, peripheral: peripheral))
    }
}

        throwing error: E,
        function: String = #function
    ) {
        Self.log("Will resume continuation '\(self.function)' for peripheral \(peripheral), throwing in '\(function)' (\(error.localizedDescription))")
        continuation.resume(throwing: error)
    }
}
