Skip to content

Commit

Permalink
RCTDeprecation BUCK integration (facebook#41417)
Browse files Browse the repository at this point in the history
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
philIip authored and facebook-github-bot committed Nov 14, 2023
1 parent d800c8b commit d4fb85a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
RCTDeprecation contains C macros to identify deprecated APIs at build-time.

0 comments on commit d4fb85a

Please sign in to comment.