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:
parent
51d7a7bb3f
commit
61b6d52ad0
|
@ -1,9 +1,9 @@
|
||||||
@objc class SwiftMainClass {
|
@objc class SwiftMainClass {
|
||||||
class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
|
class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
|
||||||
println("argc: \(argc)")
|
dump("argc: \(argc)")
|
||||||
for (var i = 0; i < argc; ++i) {
|
for (var i = 0; i < argc; ++i) {
|
||||||
var argi = String.fromCString(argv[i])
|
var argi = String.fromCString(argv[i])
|
||||||
println("arg[\(i)]: \(argi)");
|
dump("arg[\(i)]: \(argi)");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
println("SwiftOnly")
|
dump("SwiftOnly")
|
||||||
|
|
Loading…
Reference in New Issue