Skip to content

Commit b2337c3

Browse files
committed
wip
1 parent f929b36 commit b2337c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Foundation
2+
3+
func warn(_ message: String) {
4+
#if os(Linux) || os(macOS)
5+
fputs("\(message)\n", stderr)
6+
#else
7+
// TODO: Print to `stderr` on Windows?
8+
print(message)
9+
#endif
10+
}

0 commit comments

Comments
 (0)