This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // UIApplicationMain accepts Swift.String in Swift apps; a C forward declaration is needed | |
| struct SwiftString { | |
| uint8_t reserved[16]; | |
| }; | |
| typedef struct SwiftString SwiftString; | |
| int (*orig_UIApplicationMain_objc)(int argc, char *argv[], NSString *_, NSString *delegateClassName) = nil; | |
| int (*orig_UIApplicationMain_swift)(int argc, char *argv[], SwiftString _, SwiftString delegateClassName) = nil; | |
| NSString *(*FoundationBridgeSwiftStringToObjC)(SwiftString str) = nil; |
OlderNewer