Files
swift-mirror/test/SILGen/Inputs/usr/include/UIKit.h
Joe Groff cba32f79a5 SILGen: Cope with overloads when emitting artificial main for @UIApplicationMain.
The overlay may add overloads for UIApplicationMain for various reasons. When we generate the special `main` implementation for a `@UIApplicationMain` class, we want to call the original function from Objective-C, so pick that one where there are multiple overloads to choose from. Fixes rdar://problem/42352695.
2018-07-18 15:58:11 -07:00

15 lines
460 B
Objective-C

@import Foundation;
@protocol UIApplicationDelegate
@end
#ifdef SILGEN_TEST_UIAPPLICATIONMAIN_NULLABILITY
int UIApplicationMain(int argc, char *_Nullable *_Nonnull argv,
NSString *_Nullable principalClassName,
NSString *_Nullable delegateClassName);
#else
int UIApplicationMain(int argc, char **argv,
NSString *principalClassName,
NSString *delegateClassName);
#endif