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
| func crashReporterScreenCapture(info:UnsafeMutablePointer<siginfo_t>, uap:UnsafeMutablePointer<ucontext_t>, context:UnsafeMutablePointer<Void>) { | |
| } | |
| var crashReporterCapture = PLCrashReporterCallbacks() | |
| crashReporterCapture.version = 0 | |
| crashReporterCapture.context = nil | |
| crashReporterCapture.handleSignal = crashReporterScreenCapture | |
| crashReporter.setCrashCallbacks(&crashReporterCapture) |
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
| #ifndef L | |
| #define L(key) [NSBundle.mainBundle localizedStringForKey:(key)] | |
| #endif | |
| @interface NSBundle (NSLocalizedString_Base) | |
| - (NSString *)localizedStringForKey:(NSString *)key; | |
| @end | |
| @implementation NSBundle (NSLocalizedString_Base) |
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
| #define LIST_OF_ServerAPI \ | |
| /*會員*/ \ | |
| api(登入, member/login) \ | |
| api(FB登入, member/fbLogin) | |
| typedef NS_ENUM(NSInteger, ServerAPI) { | |
| #define api(key, name) key, | |
| LIST_OF_ServerAPI | |
| #undef api | |
| }; |
NewerOlder