Skip to content
Snippets Groups Projects
Commit 61b6d52a authored by Gregor Jasny's avatar Gregor Jasny
Browse files

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.
parent 51d7a7bb
No related branches found
No related tags found
No related merge requests found
@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;
}
......
println("SwiftOnly")
dump("SwiftOnly")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment