2015-09-03 16:26:06 +03:00
|
|
|
import Foundation
|
|
|
|
|
|
|
|
@objc class SwiftMainClass : NSObject {
|
2015-07-06 23:15:49 +03:00
|
|
|
class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
|
2015-09-01 21:32:38 +03:00
|
|
|
dump("argc: \(argc)")
|
2015-07-06 23:15:49 +03:00
|
|
|
for (var i = 0; i < argc; ++i) {
|
2015-09-03 16:26:06 +03:00
|
|
|
let argi = String.fromCString(argv[i])
|
2015-09-01 21:32:38 +03:00
|
|
|
dump("arg[\(i)]: \(argi)");
|
2015-07-06 23:15:49 +03:00
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|