2015-07-06 23:15:49 +03:00
|
|
|
@objc class SwiftMainClass {
|
|
|
|
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) {
|
|
|
|
var 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;
|
|
|
|
}
|
|
|
|
}
|