     print("Error writing generated file at \(url)")
     print(error.localizedDescription)
 }
+    
+#else
+    print("Linux not supported by generator.")
+#endif
+

import Foundation

let generator = Generator(max: 5)

    fatalError("$(SRCROOT) must be passed as a parameter")
}

let path = ProcessInfo.processInfo().arguments[1].replacingOccurrences(of: "XcodeProject", with: "")
let url = URL(fileURLWithPath: path + "/Sources/Vapor/Core/Generated.swift")

do{
    let lines = code.characters.split(separator: "\n").count
    let functions = code.components(separatedBy: "func").count - 1

    // writing to disk
    try code.write(to: url, atomically: true, encoding: .utf8)
    print("✅ Code successfully generated.")
    print("Functions: \(functions)")
    print("Lines: \(lines)")
