Skip to content

Commit

Permalink
Redefined ETL_DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
jwellbelove committed Dec 19, 2024
1 parent 748e235 commit 297b7e6
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions include/etl/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,15 @@ SOFTWARE.
//*************************************
// C++14
#if ETL_USING_CPP14 && !defined(ETL_FORCE_NO_ADVANCED_CPP)
#define ETL_CONSTEXPR14 constexpr
#define ETL_DEPRECATED [[deprecated]]
#define ETL_DEPRECATED_REASON(reason) [[deprecated(reason)]]
#define ETL_CONSTEXPR14 constexpr

#if !defined(ETL_IN_UNIT_TEST)
#define ETL_DEPRECATED [[deprecated]]
#define ETL_DEPRECATED_REASON(reason) [[deprecated(reason)]]
#else
#define ETL_DEPRECATED
#define ETL_DEPRECATED_REASON(reason)
#endif
#else
#define ETL_CONSTEXPR14
#define ETL_DEPRECATED
Expand Down

0 comments on commit 297b7e6

Please sign in to comment.