Fixed RCTAssert()

Reviewed By: zats

Differential Revision: D8529663

fbshipit-source-id: ddedf1daa153f25bc62db19b8e1ace32b4ab3201
This commit is contained in:
Hoa Dinh 2018-06-20 09:46:36 -07:00 committed by Facebook Github Bot
parent 5ae531cba7
commit 746b503024
1 changed files with 1 additions and 1 deletions

View File

@ -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__]; \
} \ } \
} \ } \