Skip to content

Commit d1ff0b0

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

React/Base/RCTUtils.m

+1-1
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ - (void)installExtraJSBinding
654654
NSArray<RCTModuleData *> *moduleDataById = [self registerModulesForClasses:modules];
655655

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

0 commit comments

Comments
 (0)