source: pacpusframework/trunk/include/Pacpus/kernel/deprecated.h@ 378

Last change on this file since 378 was 299, checked in by Marek Kurdej, 11 years ago

Separated PACPUS_DEPRECATED macros from pacpus.h into deprecated.h.

File size: 1.3 KB
RevLine 
[299]1// %pacpus:license{
2// This file is part of the PACPUS framework distributed under the
3// CECILL-C License, Version 1.0.
4// %pacpus:license}
5/// @file
6/// @author Marek Kurdej <firstname.surname@utc.fr>
7/// @date 2014-04-07 10:38:32
8/// @version $Id$
9/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
10/// @brief Brief description.
11///
12/// Detailed description.
13
14#ifndef PACPUS_DEPRECATED_H
15#define PACPUS_DEPRECATED_H
16
17/// @def PACPUS_DEPRECATED(func)
18/// Develops to the function or method declaration @b func
19/// and marks it as deprecated.
20
21/// @def PACPUS_DEPRECATED_MSG(func, msg)
22/// Develops to the function or method declaration @b func
23/// and marks it as deprecated with a given comment @b msg.
24#ifdef __GNUC__
25# define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
26# define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
27#elif defined(_MSC_VER)
28# define PACPUS_DEPRECATED(func) __declspec(deprecated) func
29# define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
30#else
31# pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
32# define PACPUS_DEPRECATED(func) func
33# define PACPUS_DEPRECATED_MSG(func, msg) func
34#endif
35
36#endif // PACPUS_DEPRECATED_H
Note: See TracBrowser for help on using the repository browser.