[89] | 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 Gerald Dherbomez <firstname.surname@utc.fr>
|
---|
| 7 | /// @author Marek Kurdej <firstname.surname@utc.fr>
|
---|
| 8 | /// @date February, 2006
|
---|
| 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.
|
---|
| 14 |
|
---|
| 15 | #ifndef DEF_PACPUS_H
|
---|
| 16 | #define DEF_PACPUS_H
|
---|
| 17 |
|
---|
| 18 | #include <Pacpus/kernel/road_time.h>
|
---|
| 19 |
|
---|
| 20 | /// Pi math constant
|
---|
| 21 | ///
|
---|
| 22 | /// @deprecated Use M_PI from \<cmath\>.
|
---|
| 23 | #ifndef PACPUS_PI
|
---|
| 24 | # define PACPUS_PI 3.1415926
|
---|
| 25 | #endif
|
---|
| 26 |
|
---|
| 27 | /// Export macro for PacpusLib DLL for Windows only
|
---|
| 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 |
|
---|
| 41 | /// @def PACPUS_DEPRECATED(func)
|
---|
| 42 | /// Develops to the function or method declaration @b func
|
---|
| 43 | /// and marks it as deprecated.
|
---|
| 44 |
|
---|
| 45 | /// @def PACPUS_DEPRECATED_MSG(func, msg)
|
---|
| 46 | /// Develops to the function or method declaration @b func
|
---|
| 47 | /// and marks it as deprecated with a given comment @b msg.
|
---|
| 48 | #ifdef __GNUC__
|
---|
| 49 | # define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
|
---|
| 50 | # define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
|
---|
| 51 | #elif defined(_MSC_VER)
|
---|
| 52 | # define PACPUS_DEPRECATED(func) __declspec(deprecated) func
|
---|
| 53 | # define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
|
---|
| 54 | #else
|
---|
| 55 | # pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
|
---|
| 56 | # define PACPUS_DEPRECATED(func) func
|
---|
| 57 | # define PACPUS_DEPRECATED_MSG(func, msg) func
|
---|
| 58 | #endif
|
---|
| 59 |
|
---|
| 60 | #endif // DEF_PACPUS_H
|
---|