diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-09-01 20:32:38 +0200 |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-09-01 20:32:38 +0200 |
commit | 61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8 (patch) | |
tree | 1c6dd7d0109c40bdde63336ca635d864c2addce7 | |
parent | 51d7a7bb3f03b3562c8ca82ddfefcc5185dc2455 (diff) | |
download | cmake-61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8.tar.gz |
Swift: Use dump instead of println
With Swift 2.0 in Xcode7 the println function was renamed into
print. Use dump function instead which adds newlines like println.
-rw-r--r-- | Tests/SwiftMix/SwiftMain.swift | 4 | ||||
-rw-r--r-- | Tests/SwiftOnly/main.swift | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Tests/SwiftMix/SwiftMain.swift b/Tests/SwiftMix/SwiftMain.swift index 9af9883758..7e7c4aba1a 100644 --- a/Tests/SwiftMix/SwiftMain.swift +++ b/Tests/SwiftMix/SwiftMain.swift @@ -1,9 +1,9 @@ @objc class SwiftMainClass { class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 { - println("argc: \(argc)") + dump("argc: \(argc)") for (var i = 0; i < argc; ++i) { var argi = String.fromCString(argv[i]) - println("arg[\(i)]: \(argi)"); + dump("arg[\(i)]: \(argi)"); } return 0; } diff --git a/Tests/SwiftOnly/main.swift b/Tests/SwiftOnly/main.swift index 67be9861ec..28560d076d 100644 --- a/Tests/SwiftOnly/main.swift +++ b/Tests/SwiftOnly/main.swift @@ -1 +1 @@ -println("SwiftOnly") +dump("SwiftOnly") |