[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 76 2013-01-10 17:05:10Z 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 |
|
---|
[31] | 18 | #include <Pacpus/kernel/road_time.h>
|
---|
| 19 |
|
---|
[69] | 20 | /// Pi math constant
|
---|
| 21 | ///
|
---|
[71] | 22 | /// @deprecated Use M_PI from \<cmath\>.
|
---|
[3] | 23 | #ifndef PACPUS_PI
|
---|
| 24 | # define PACPUS_PI 3.1415926
|
---|
[11] | 25 | #endif
|
---|
[3] | 26 |
|
---|
[69] | 27 | /// Export macro for PacpusLib DLL for Windows only
|
---|
[3] | 28 | #ifdef WIN32
|
---|
| 29 | # ifdef PACPUSLIB_EXPORTS
|
---|
| 30 | // make DLL
|
---|
| 31 | # define PACPUSLIB_API __declspec(dllexport)
|
---|
| 32 | # else
|
---|
| 33 | // use DLL
|
---|
| 34 | # define PACPUSLIB_API __declspec(dllimport)
|
---|
| 35 | # endif
|
---|
| 36 | #else
|
---|
| 37 | // On other platforms, simply ignore this
|
---|
| 38 | # define PACPUSLIB_API
|
---|
| 39 | #endif
|
---|
| 40 |
|
---|
[69] | 41 | /// @def PACPUS_DEPRECATED(func)
|
---|
| 42 | /// Develops to the function or method declaration @b func
|
---|
| 43 | /// and marks it as deprecated.
|
---|
| 44 |
|
---|
[70] | 45 | /// @def PACPUS_DEPRECATED_MSG(func, msg)
|
---|
[69] | 46 | /// Develops to the function or method declaration @b func
|
---|
| 47 | /// and marks it as deprecated with a given comment @b msg.
|
---|
[3] | 48 | #ifdef __GNUC__
|
---|
[59] | 49 | # define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
|
---|
| 50 | # define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
|
---|
[3] | 51 | #elif defined(_MSC_VER)
|
---|
[59] | 52 | # define PACPUS_DEPRECATED(func) __declspec(deprecated) func
|
---|
| 53 | # define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
|
---|
[3] | 54 | #else
|
---|
| 55 | # pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
|
---|
[59] | 56 | # define PACPUS_DEPRECATED(func) func
|
---|
| 57 | # define PACPUS_DEPRECATED_MSG(func, msg) func
|
---|
[3] | 58 | #endif
|
---|
| 59 |
|
---|
[31] | 60 | #endif // DEF_PACPUS_H
|
---|