Swift: Make SwiftMix compatible with Swift 2
This commit is contained in:
parent
e7777cc563
commit
874a265c94
|
@ -1,8 +1,10 @@
|
||||||
@objc class SwiftMainClass {
|
import Foundation
|
||||||
|
|
||||||
|
@objc class SwiftMainClass : NSObject {
|
||||||
class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
|
class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
|
||||||
dump("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])
|
let argi = String.fromCString(argv[i])
|
||||||
dump("arg[\(i)]: \(argi)");
|
dump("arg[\(i)]: \(argi)");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue