[76] | 1 | // %pacpus:license{
|
---|
[62] | 2 | // This file is part of the PACPUS framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[76] | 4 | // %pacpus:license}
|
---|
[66] | 5 | /// @file
|
---|
[63] | 6 | /// @author Gerald Dherbomez <firstname.surname@utc.fr>
|
---|
| 7 | /// @author Marek Kurdej <firstname.surname@utc.fr>
|
---|
| 8 | /// @date February, 2006
|
---|
[62] | 9 | /// @version $Id: pacpus.h 116 2013-06-25 11:44:25Z kurdejma $
|
---|
| 10 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
---|
| 11 | /// @brief Brief description.
|
---|
| 12 | ///
|
---|
| 13 | /// Detailed description.
|
---|
[3] | 14 |
|
---|
[31] | 15 | #ifndef DEF_PACPUS_H
|
---|
| 16 | #define DEF_PACPUS_H
|
---|
[3] | 17 |
|
---|
[116] | 18 | #include <Pacpus/kernel/PacpusLibConfig.h>
|
---|
[31] | 19 | #include <Pacpus/kernel/road_time.h>
|
---|
| 20 |
|
---|
[69] | 21 | /// Pi math constant
|
---|
| 22 | ///
|
---|
[71] | 23 | /// @deprecated Use M_PI from \<cmath\>.
|
---|
[3] | 24 | #ifndef PACPUS_PI
|
---|
| 25 | # define PACPUS_PI 3.1415926
|
---|
[11] | 26 | #endif
|
---|
[3] | 27 |
|
---|
[69] | 28 | /// @def PACPUS_DEPRECATED(func)
|
---|
| 29 | /// Develops to the function or method declaration @b func
|
---|
| 30 | /// and marks it as deprecated.
|
---|
| 31 |
|
---|
[70] | 32 | /// @def PACPUS_DEPRECATED_MSG(func, msg)
|
---|
[69] | 33 | /// Develops to the function or method declaration @b func
|
---|
| 34 | /// and marks it as deprecated with a given comment @b msg.
|
---|
[3] | 35 | #ifdef __GNUC__
|
---|
[59] | 36 | # define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
|
---|
| 37 | # define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
|
---|
[3] | 38 | #elif defined(_MSC_VER)
|
---|
[59] | 39 | # define PACPUS_DEPRECATED(func) __declspec(deprecated) func
|
---|
| 40 | # define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
|
---|
[3] | 41 | #else
|
---|
| 42 | # pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
|
---|
[59] | 43 | # define PACPUS_DEPRECATED(func) func
|
---|
| 44 | # define PACPUS_DEPRECATED_MSG(func, msg) func
|
---|
[3] | 45 | #endif
|
---|
| 46 |
|
---|
[31] | 47 | #endif // DEF_PACPUS_H
|
---|