OODebugMode.h
1 #define LOG(...) [OODebugMode log:[NSString stringWithUTF8String:__FILE__] message:__VA_ARGS__];
2 #define ASSERT(condition, ...) [OODebugMode assert:condition tag:[NSString stringWithUTF8String:__FILE__] message:__VA_ARGS__];
3 #define ASSERT_FALSE(...) [OODebugMode assertFalse:[NSString stringWithUTF8String:__FILE__] message:__VA_ARGS__];
4 
5 #import <Foundation/Foundation.h>
6 
7 typedef NS_ENUM(NSInteger, DebugMode) {
8  None,
9  LogOnly,
10  LogAndAbort
11 };
12 
17 @interface OODebugMode : NSObject
18 
23 + (DebugMode)getDebugMode;
24 
29 + (void)setDebugMode:(DebugMode)mode;
30 
37 + (void)assert:(BOOL)condition tag:(NSString *)tag message:(NSString *)format, ...;
38 
44 + (void)assertFalse:(NSString *)tag message:(NSString *)format, ...;
45 
51 + (void)log:(NSString *)tag message:(NSString *)format, ...;
52 
53 @end
DebugMode getDebugMode()
gets current debug mode.
Enable or disable Ooyala debug logs.
Definition: OODebugMode.h:17