mirror of
https://github.com/GayPizzaSpecifications/darwin-apk.git
synced 2025-08-03 13:31:32 +00:00
18 lines
456 B
Swift
18 lines
456 B
Swift
/*
|
|
* darwin-apk © 2024 Gay Pizza Specifications
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import Foundation
|
|
|
|
internal func eprint(_ items: Any..., separator: String = " ", terminator: String = "\n") {
|
|
var stderr = FileHandle.standardError
|
|
print(items, separator: separator, terminator: terminator, to: &stderr)
|
|
}
|
|
|
|
extension FileHandle: @retroactive TextOutputStream {
|
|
public func write(_ string: String) {
|
|
self.write(Data(string.utf8))
|
|
}
|
|
}
|