/
githubmr
/
facebook-react-native
Обзор
Документация
Войти
/
githubmr
/
facebook-react-native
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
main
packages/react-native/ReactCommon/react/debug/flags.h
22 строки
664 B
Nick Gerleman
Disable REACT_NATIVE_DEBUG in gray builds (#38082)
01 июл 2023, 08:18
01 июл 2023, 08:18
5008a91
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #pragma once // // Preprocessor flags which control whether code meant for debugging the // internals of React Native is included in the build. E.g. debug assertions. // // This flag is normally derived from NDEBUG, but may be set explicitly by // defining `REACT_NATIVE_DEBUG` or `REACT_NATIVE_PRODUCTION`. #if !(defined(REACT_NATIVE_DEBUG) || defined(REACT_NATIVE_PRODUCTION)) #ifdef NDEBUG #define REACT_NATIVE_PRODUCTION #else #define REACT_NATIVE_DEBUG #endif #endif