diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2015-09-01 18:32:38 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2015-09-01 18:32:38 (GMT) |
commit | 61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8 (patch) | |
tree | 1c6dd7d0109c40bdde63336ca635d864c2addce7 /Tests | |
parent | 51d7a7bb3f03b3562c8ca82ddfefcc5185dc2455 (diff) | |
download | CMake-61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8.zip CMake-61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8.tar.gz CMake-61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8.tar.bz2 |
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.
Diffstat (limited to 'Tests')
-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 9af9883..7e7c4ab 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 67be986..28560d0 100644 --- a/Tests/SwiftOnly/main.swift +++ b/Tests/SwiftOnly/main.swift @@ -1 +1 @@ -println("SwiftOnly") +dump("SwiftOnly") |