|
| 1 | +/* |
| 2 | + * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + */ |
| 7 | + |
| 8 | +#pragma once |
| 9 | + |
| 10 | +// ============================================================================= |
| 11 | +// Umbrella header for the `react/renderer/debug` module - public entry point. |
| 12 | +// |
| 13 | +// #include <React/RendererDebug.h> |
| 14 | +// |
| 15 | +// Re-exports the module's public interface headers. React Native's own code |
| 16 | +// should keep using the fine-grained `<react/renderer/debug/...>` includes; |
| 17 | +// only outside consumers use this umbrella. |
| 18 | +// ============================================================================= |
| 19 | + |
| 20 | +// Marks that the following headers are pulled in through the umbrella, so their |
| 21 | +// shared guard (<react/cxxstableapi/UmbrellaGuard.h>) accepts them. The marker |
| 22 | +// is saved and restored rather than defined and undefined: the scope ends at |
| 23 | +// this block, so later *direct* includes in the same TU are still caught, and |
| 24 | +// it nests inside an enclosing umbrella rather than disarming it. |
| 25 | +#pragma push_macro("RN_UMBRELLA_CONTEXT") |
| 26 | +#undef RN_UMBRELLA_CONTEXT |
| 27 | +#define RN_UMBRELLA_CONTEXT 1 |
| 28 | + |
| 29 | +#include <react/renderer/debug/DebugStringConvertible.h> |
| 30 | +#include <react/renderer/debug/DebugStringConvertibleItem.h> |
| 31 | +#include <react/renderer/debug/debugStringConvertibleUtils.h> |
| 32 | +#include <react/renderer/debug/flags.h> |
| 33 | + |
| 34 | +#undef RN_UMBRELLA_CONTEXT |
| 35 | +#pragma pop_macro("RN_UMBRELLA_CONTEXT") |
0 commit comments