mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-17 16:06:17 +08:00
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