xref: /libCEED/rust/libceed-sys/c-src/include/ceed/deprecated.h (revision d4cc18453651bd0f94c1a2e078b2646a92dafdcc)
1*9ba83ac0SJeremy L Thompson /// Copyright (c) 2017-2026, Lawrence Livermore National Security, LLC and other CEED contributors.
252b0e563SJeremy L Thompson /// All Rights Reserved. See the top-level LICENSE and NOTICE files for details.
352b0e563SJeremy L Thompson ///
452b0e563SJeremy L Thompson /// SPDX-License-Identifier: BSD-2-Clause
552b0e563SJeremy L Thompson ///
652b0e563SJeremy L Thompson /// This file is part of CEED:  http://github.com/ceed
752b0e563SJeremy L Thompson 
852b0e563SJeremy L Thompson /// @file
952b0e563SJeremy L Thompson /// Public header for user and utility components of libCEED
1052b0e563SJeremy L Thompson #pragma once
1152b0e563SJeremy L Thompson 
1252b0e563SJeremy L Thompson #if __STDC_VERSION__ >= 202311L
1352b0e563SJeremy L Thompson #define DEPRECATED(msg) [[deprecated(msg)]]
1452b0e563SJeremy L Thompson #elif defined(__GNUC__) || defined(__clang__)
1552b0e563SJeremy L Thompson #define DEPRECATED(msg) __attribute__((deprecated(msg)))
1652b0e563SJeremy L Thompson #else
1752b0e563SJeremy L Thompson #define DEPRECATED(msg)
1852b0e563SJeremy L Thompson #endif
1952b0e563SJeremy L Thompson 
2052b0e563SJeremy L Thompson // Compatibility with previous composite CeedOperator naming
2152b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCreateComposite()")
CeedCompositeOperatorCreate(Ceed a,CeedOperator * b)2252b0e563SJeremy L Thompson static inline int CeedCompositeOperatorCreate(Ceed a, CeedOperator *b) { return CeedOperatorCreateComposite(a, b); }
2352b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeAddSub()")
CeedCompositeOperatorAddSub(CeedOperator a,CeedOperator b)2452b0e563SJeremy L Thompson static inline int CeedCompositeOperatorAddSub(CeedOperator a, CeedOperator b) { return CeedOperatorCompositeAddSub(a, b); }
2552b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeGetNumSub()")
CeedCompositeOperatorGetNumSub(CeedOperator a,CeedInt * b)2652b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetNumSub(CeedOperator a, CeedInt *b) { return CeedOperatorCompositeGetNumSub(a, b); }
2752b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeGetSubList()")
CeedCompositeOperatorGetSubList(CeedOperator a,CeedOperator ** b)2852b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetSubList(CeedOperator a, CeedOperator **b) { return CeedOperatorCompositeGetSubList(a, b); }
296a430a1aSJed Brown DEPRECATED("Use CeedOperatorCompositeGetSubByName()")
CeedCompositeOperatorGetSubByName(CeedOperator a,const char * b,CeedOperator * c)3052b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetSubByName(CeedOperator a, const char *b, CeedOperator *c) {
3152b0e563SJeremy L Thompson   return CeedOperatorCompositeGetSubByName(a, b, c);
3252b0e563SJeremy L Thompson }
3352b0e563SJeremy L Thompson DEPRECATED("Use CeedOperatorCompositeGetMultiplicity()")
CeedCompositeOperatorGetMultiplicity(CeedOperator a,CeedInt b,CeedInt * c,CeedVector d)3452b0e563SJeremy L Thompson static inline int CeedCompositeOperatorGetMultiplicity(CeedOperator a, CeedInt b, CeedInt *c, CeedVector d) {
3552b0e563SJeremy L Thompson   return CeedOperatorCompositeGetMultiplicity(a, b, c, d);
3652b0e563SJeremy L Thompson }
3752b0e563SJeremy L Thompson 
3852b0e563SJeremy L Thompson #undef DEPRECATED
39