Fixed RCTAssert()
Reviewed By: zats Differential Revision: D8529663 fbshipit-source-id: ddedf1daa153f25bc62db19b8e1ace32b4ab3201
This commit is contained in:
parent
5ae531cba7
commit
746b503024
|
@ -24,7 +24,7 @@ RCT_EXTERN BOOL RCTIsMainQueue(void);
|
||||||
if ((condition) == 0) { \
|
if ((condition) == 0) { \
|
||||||
_RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
|
_RCTAssertFormat(#condition, __FILE__, __LINE__, __func__, __VA_ARGS__); \
|
||||||
if (RCT_NSASSERT) { \
|
if (RCT_NSASSERT) { \
|
||||||
[[NSAssertionHandler currentHandler] handleFailureInFunction:@(__func__) \
|
[[NSAssertionHandler currentHandler] handleFailureInFunction:(NSString * _Nonnull)@(__func__) \
|
||||||
file:(NSString * _Nonnull)@(__FILE__) lineNumber:__LINE__ description:__VA_ARGS__]; \
|
file:(NSString * _Nonnull)@(__FILE__) lineNumber:__LINE__ description:__VA_ARGS__]; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue