F´ Flight Software - C/C++ Documentation  devel
A framework for building embedded system applications to NASA flight quality standards.
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 #ifndef DEPRECATED
9 
10 #ifdef __GNUC__
11  #define DEPRECATED(func, message) func __attribute__ ((deprecated(message)))
12 #else
13  #warning "No implementation of DEPRECATED for given compiler. Please check for use of DEPRECATED() functions"
14  #define DEPRECATED(func) func
15 #endif
16 
17 #endif
18 
19 #endif // FW_DEPRECATE_HPP