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.
This commit is contained in:
Gregor Jasny 2015-09-01 20:32:38 +02:00
parent 51d7a7bb3f
commit 61b6d52ad0
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -1 +1 @@
println("SwiftOnly")
dump("SwiftOnly")