Updated formatting of MPPRunningMode.h
This commit is contained in:
parent
7b8d92ba47
commit
87df23f0fa
|
@ -39,12 +39,11 @@ typedef NS_ENUM(NSUInteger, MPPRunningMode) {
|
|||
} NS_SWIFT_NAME(RunningMode);
|
||||
|
||||
NS_INLINE NSString *MPPRunningModeDisplayName(MPPRunningMode runningMode) {
|
||||
|
||||
if (runningMode > MPPRunningModeLiveStream) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
#define MPPRunningModeDisplayNameMap(mode) [mode] = @#mode
|
||||
#define MPPRunningModeDisplayNameMap(mode) [mode] = @ #mode
|
||||
|
||||
NSString *displayNameMap[MPPRunningModeLiveStream + 1] = {
|
||||
MPPRunningModeDisplayNameMap(MPPRunningModeImage),
|
||||
|
@ -52,7 +51,7 @@ NS_INLINE NSString *MPPRunningModeDisplayName(MPPRunningMode runningMode) {
|
|||
MPPRunningModeDisplayNameMap(MPPRunningModeLiveStream),
|
||||
};
|
||||
|
||||
#undef MPPRunningModeDisplayNameMap
|
||||
#undef MPPRunningModeDisplayNameMap
|
||||
|
||||
return displayNameMap[runningMode];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user