summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftMix/SwiftMain.swift
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2015-09-01 18:32:38 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2015-09-01 18:32:38 (GMT)
commit61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8 (patch)
tree1c6dd7d0109c40bdde63336ca635d864c2addce7 /Tests/SwiftMix/SwiftMain.swift
parent51d7a7bb3f03b3562c8ca82ddfefcc5185dc2455 (diff)
downloadCMake-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/SwiftMix/SwiftMain.swift')
-rw-r--r--Tests/SwiftMix/SwiftMain.swift4
1 files changed, 2 insertions, 2 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;
}