mirror of
https://github.com/dredx/prole.git
synced 2026-09-24 17:44:33 +00:00
- Moved prole-tools-app to prole-app at the project root to make it self-contained for transition to its own repository. - Created prole-tools-app/dist/ directory to host build artifacts. - Generated distribution artifacts (Prole Tools.app and Prole Tools.zip) using prole-app/build.sh package. - Checked in the generated artifacts to prole-tools-app/dist/ (bypassing .gitignore for temporary release process). Changes Summary • Renamed directory prole-tools-app/ to prole-app/. • Populated prole-tools-app/dist/ with the latest build output from prole-app/build.sh. • Staged all changes, including the forced addition of ignored artifacts in prole-tools-app/dist/.
17 lines
446 B
Swift
17 lines
446 B
Swift
import Foundation
|
|
|
|
enum Debug {
|
|
static let isEnabled: Bool = true
|
|
|
|
static func log(_ message: @autoclosure () -> String) {
|
|
guard isEnabled else { return }
|
|
let ts = ISO8601DateFormatter().string(from: Date())
|
|
FileHandle.standardOutput.write(("[ProleStatus] " + ts + " " + message() + "\n").data(using: .utf8)!)
|
|
}
|
|
}
|
|
|
|
@inline(__always)
|
|
func dlog(_ message: @autoclosure () -> String) {
|
|
Debug.log(message())
|
|
}
|