fprime/Fw/Deprecate.hpp
Thomas Boyer-Chammard ab58cf18fb
Format Fw and add to CI (#3976)
* Format Fw and add to CI

* Fix include of HPP file instead of H in extern C

* Fix format strings
2025-08-04 12:56:02 -07:00

20 lines
455 B
C++

// deprecate.hpp:
//
// A minor implementation of compile-time deprecation for the fprime framework.
#ifndef FW_DEPRECATE_HPP
#define FW_DEPRECATE_HPP
#ifndef DEPRECATED
#ifdef __GNUC__
#define DEPRECATED(func, message) func __attribute__((deprecated(message)))
#else
#warning "No implementation of DEPRECATED for given compiler. Please check for use of DEPRECATED() functions"
#define DEPRECATED(func) func
#endif
#endif
#endif // FW_DEPRECATE_HPP