F´ Flight Software - C/C++ Documentation  NASA-v2.1.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Deprecate.hpp
Go to the documentation of this file.
1 // deprecate.hpp:
2 //
3 // A minor implementation of compile-time deprecation for the fprime framework.
4 
5 #ifndef FW_DEPRECATE_HPP
6 #define FW_DEPRECATE_HPP
7 
8 #ifdef __GNUC__
9  #define DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
10 #else
11  #warning "No implementation of DEPRECATED for given compiler. Pleas check for use of DEPRECATED() functions"
12  #define DEPRECATED(func) func
13 #endif
14 
15 #endif // FW_DEPRECATE_HPP