mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-06 17:34:07 +08:00
Wipe out -DRCTLOG_ENABLED=0
Summary: The root cause comes down to the fact that historically `-DFOO=0` and `-DFOO=1` patterns have been used when it comes to preprocessor definitions and various engineers use `#ifdef FOO` and `#if FOO` interchangeably. That results in an incorrect pattern because the real evaluation is following: - `FOO` not defined: `#if FOO` = `FALSE`, `#ifdef FOO` = `FALSE`. - `-DFOO=0`: `#if FOO` = `FALSE`, `#ifdef FOO` = `TRUE`. - `-DFOO=1`: `#if FOO` = `TRUE`, `#ifdef FOO` = `TRUE`. Reviewed By: aditya7fb Differential Revision: D14811733 fbshipit-source-id: a7fedc56ab0ce8eedcb48bda783739a4c1eecf81
This commit is contained in:
committed by
Facebook Github Bot
parent
3cc256ebaf
commit
0c0aff295b
@@ -11,10 +11,6 @@
|
||||
#import <React/RCTDefines.h>
|
||||
#import <React/RCTUtils.h>
|
||||
|
||||
#ifndef RCTLOG_ENABLED
|
||||
#define RCTLOG_ENABLED 1
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Thresholds for logs to display a redbox. You can override these values when debugging
|
||||
* in order to tweak the default logging behavior.
|
||||
|
||||
Reference in New Issue
Block a user