Sesame-Server/Sources/App/Print.swift
2023-12-08 19:54:51 +01:00

17 lines
206 B
Swift

import Foundation
#if os(Linux)
import Glibc
#else
import Darwin.C
#endif
func printAndFlush(_ message: String) {
print(message)
flushStdout()
}
func flushStdout() {
fflush(stdout)
}