blob: 4714a8fa6e3446453c387766d749e95226412ec2 [file] [log] [blame]
import Foundation
@_exported import AppKit
// Fix the ARGV type of NSApplicationMain, which nonsensically takes
// argv as a const char**.
public func NSApplicationMain(
_ argc: Int32, _ argv: UnsafeMutablePointer<UnsafeMutablePointer<CChar>?>
) -> Int32 {
return argv.withMemoryRebound(to:UnsafePointer<Int8>.self, capacity: Int(argc)) {
argv in
return __NSApplicationMain(argc, argv)
}
}