From b2337c3bb142b51ea9fad8acb54f90b4980695a8 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Thu, 18 Jul 2024 22:51:38 -0700 Subject: [PATCH] wip --- Sources/IssueReporting/Internal/Warn.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Sources/IssueReporting/Internal/Warn.swift diff --git a/Sources/IssueReporting/Internal/Warn.swift b/Sources/IssueReporting/Internal/Warn.swift new file mode 100644 index 0000000..5616d8f --- /dev/null +++ b/Sources/IssueReporting/Internal/Warn.swift @@ -0,0 +1,10 @@ +import Foundation + +func warn(_ message: String) { + #if os(Linux) || os(macOS) + fputs("\(message)\n", stderr) + #else + // TODO: Print to `stderr` on Windows? + print(message) + #endif +}