Sesame-Server/Sources/App/Print.swift

17 lines
206 B
Swift
Raw Permalink Normal View History

2023-12-08 19:54:51 +01:00
import Foundation
#if os(Linux)
import Glibc
#else
import Darwin.C
#endif
func printAndFlush(_ message: String) {
print(message)
flushStdout()
}
func flushStdout() {
fflush(stdout)
}