From 61b6d52ad01dec76f8b798f1c52a5c03cf9e45d8 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Tue, 1 Sep 2015 20:32:38 +0200 Subject: 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. --- Tests/SwiftMix/SwiftMain.swift | 4 ++-- 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>) -> 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") -- cgit v0.12