We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda4f52 commit 7592b18Copy full SHA for 7592b18
SwiftCompilerSources/Sources/Basic/Utils.swift
@@ -52,6 +52,19 @@ public extension NoReflectionChildren {
52
var customMirror: Mirror { Mirror(self, children: []) }
53
}
54
55
+public var standardError = CFileStream(fp: stderr)
56
+
57
+public struct CFileStream: TextOutputStream {
58
+ var fp: UnsafeMutablePointer<FILE>
59
60
+ public func write(_ string: String) {
61
+ fputs(string, fp)
62
+ }
63
64
+ public func flush() {
65
+ fflush(fp)
66
67
+}
68
69
//===----------------------------------------------------------------------===//
70
// StringRef
0 commit comments