We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 474f12e commit 79b5735Copy full SHA for 79b5735
React/Base/RCTUtils.h
@@ -93,7 +93,7 @@ RCT_EXTERN BOOL RCTForceTouchAvailable(void);
93
RCT_EXTERN NSError *RCTErrorWithMessage(NSString *message);
94
95
// Convert nil values to NSNull, and vice-versa
96
-#define RCTNullIfNil(value) (value ?: (id)kCFNull)
+#define RCTNullIfNil(value) ((value) ?: (id)kCFNull)
97
#define RCTNilIfNull(value) \
98
({ __typeof__(value) t = (value); (id)t == (id)kCFNull ? (__typeof(value))nil : t; })
99
0 commit comments