Skip to content

Commit 0a5eefb

Browse files
dryganetskelset
authored andcommitted
Debug only code were leaking into release builds on iOS. (facebook#21232)
Summary: RCT_DEBUG is always defined - it is just rather 0 or 1 so ```#ifndef RCT_DEBUG is always true``` Pull Request resolved: facebook#21232 Differential Revision: D9982316 Pulled By: hramos fbshipit-source-id: 5408bfcf95a6ed2beae38217a6ad1ee43950857d
1 parent 5f85b25 commit 0a5eefb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

React/Base/RCTUtils.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ static void RCTGetRGBAColorComponents(CGColorRef color, CGFloat rgba[4])
810810
default:
811811
{
812812

813-
#ifdef RCT_DEBUG
813+
#if RCT_DEBUG
814814
//unsupported format
815815
RCTLogError(@"Unsupported color model: %i", model);
816816
#endif

React/CxxBridge/RCTCxxBridge.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ - (void)installExtraJSBinding
651651
NSArray<RCTModuleData *> *moduleDataById = [self registerModulesForClasses:modules];
652652

653653
if (lazilyDiscovered) {
654-
#ifdef RCT_DEBUG
654+
#if RCT_DEBUG
655655
// Lazily discovered modules do not require instantiation here,
656656
// as they are not allowed to have pre-instantiated instance
657657
// and must not require the main queue.

0 commit comments

Comments
 (0)