Commit 61b6d52a authored by Gregor Jasny's avatar Gregor Jasny

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
@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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment