File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 11#import " TMDiskCache.h"
22
3- #define TMDiskCacheError (error ) if (error) { NSLog (@" %@ (%d ) ERROR: %@ " , \
4- [[NSString stringWithUTF8String: __FILE__] lastPathComponent ], \
5- __LINE__, [error localizedDescription ]); }
3+ #define TMDiskCacheError (error ) \
4+ if (error) { NSLog (@" %@ (%d ) ERROR: %@ " , \
5+ [[NSString stringWithUTF8String: __FILE__] lastPathComponent ], \
6+ __LINE__, [error localizedDescription ]); \
7+ }
68
79#define TMCacheStartBackgroundTask () \
8- UIBackgroundTaskIdentifier taskID = UIBackgroundTaskInvalid; \
9- taskID = [[UIApplication sharedApplication ] beginBackgroundTaskWithExpirationHandler: ^{ \
10- [[UIApplication sharedApplication ] endBackgroundTask: taskID]; \
11- }];
10+ UIBackgroundTaskIdentifier taskID = UIBackgroundTaskInvalid; \
11+ taskID = [[UIApplication sharedApplication ] beginBackgroundTaskWithExpirationHandler: ^{ \
12+ [[UIApplication sharedApplication ] endBackgroundTask: taskID]; \
13+ }];
1214#define TMCacheEndBackgroundTask () \
13- [[UIApplication sharedApplication ] endBackgroundTask: taskID];
15+ [[UIApplication sharedApplication ] endBackgroundTask: taskID];
1416
1517static NSString * const TMDiskCachePrefix = @" com.tumblr.TMDiskCache" ;
1618static NSString * const TMDiskCacheSharedName = @" TMDiskCacheShared" ;
You can’t perform that action at this time.
0 commit comments