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