blob: 7e7c4aba1aa5d1739bdfd33ec3379086944c04ca (
plain)
1
2
3
4
5
6
7
8
9
10
|
@objc class SwiftMainClass {
class func SwiftMain(argc:Int, argv:UnsafePointer<UnsafePointer<CChar>>) -> Int32 {
dump("argc: \(argc)")
for (var i = 0; i < argc; ++i) {
var argi = String.fromCString(argv[i])
dump("arg[\(i)]: \(argi)");
}
return 0;
}
}
|