AppAuth
OIDDefines.h
Go to the documentation of this file.
1 
26 #define OIDIsEqualIncludingNil(x, y) (((x) == (y)) || [(x) isEqual:(y)])
27 
37 #define OID_UNAVAILABLE_USE_INITIALIZER(designatedInitializer) { \
38  NSString *reason = [NSString stringWithFormat:@"Called: %@\nDesignated Initializer:%@", \
39  NSStringFromSelector(_cmd), \
40  NSStringFromSelector(designatedInitializer)]; \
41  @throw [NSException exceptionWithName:@"Attempt to call unavailable initializer." \
42  reason:reason \
43  userInfo:nil]; \
44 }
45 
46 #ifdef _APPAUTHTRACE
47 # define AppAuthRequestTrace(fmt, ...) NSLog(fmt, ##__VA_ARGS__);
48 #else // _APPAUTHTRACE
49 # define AppAuthRequestTrace(...)
50 #endif // _APPAUTHTRACE
51