forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RCTDeprecation BUCK integration (facebook#41417)
Summary: Changelog: [Internal] BUCK boilerplate to integrate the first RCTFoundation library. decided to split this up so we can reference it easily in the future when adding new libs Differential Revision: D51101009
- Loading branch information
1 parent
d800c8b
commit d4fb85a
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
.../react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/Exported/RCTDeprecation.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
#ifndef RCT_DEPRECATED_DECLARATIONS | ||
#define RCT_DEPRECATED_DECLARATIONS 0 | ||
#endif | ||
|
||
#if RCT_DEPRECATED_DECLARATIONS | ||
#define RCT_DEPRECATED __attribute__((deprecated)) | ||
#else | ||
#define RCT_DEPRECATED | ||
#endif |
1 change: 1 addition & 0 deletions
1
packages/react-native/ReactApple/Libraries/RCTFoundation/RCTDeprecation/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RCTDeprecation contains C macros to identify deprecated APIs at build-time. |