| [62] | 1 | // This file is part of the PACPUS framework distributed under the
|
|---|
| 2 | // CECILL-C License, Version 1.0.
|
|---|
| 3 | //
|
|---|
| [66] | 4 | /// @file
|
|---|
| [63] | 5 | /// @author Gerald Dherbomez <firstname.surname@utc.fr>
|
|---|
| 6 | /// @author Marek Kurdej <firstname.surname@utc.fr>
|
|---|
| 7 | /// @date February, 2006
|
|---|
| [62] | 8 | /// @version $Id: pacpus.h 69 2013-01-09 23:04:42Z kurdejma $
|
|---|
| 9 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
|---|
| 10 | /// @brief Brief description.
|
|---|
| 11 | ///
|
|---|
| 12 | /// Detailed description.
|
|---|
| [3] | 13 |
|
|---|
| [31] | 14 | #ifndef DEF_PACPUS_H
|
|---|
| 15 | #define DEF_PACPUS_H
|
|---|
| [3] | 16 |
|
|---|
| [31] | 17 | #include <Pacpus/kernel/road_time.h>
|
|---|
| 18 |
|
|---|
| [69] | 19 | /// Pi math constant
|
|---|
| 20 | ///
|
|---|
| 21 | /// @deprecated,use M_PI from cmath.
|
|---|
| [3] | 22 | #ifndef PACPUS_PI
|
|---|
| 23 | # define PACPUS_PI 3.1415926
|
|---|
| [11] | 24 | #endif
|
|---|
| [3] | 25 |
|
|---|
| [69] | 26 | /// Export macro for PacpusLib DLL for Windows only
|
|---|
| [3] | 27 | #ifdef WIN32
|
|---|
| 28 | # ifdef PACPUSLIB_EXPORTS
|
|---|
| 29 | // make DLL
|
|---|
| 30 | # define PACPUSLIB_API __declspec(dllexport)
|
|---|
| 31 | # else
|
|---|
| 32 | // use DLL
|
|---|
| 33 | # define PACPUSLIB_API __declspec(dllimport)
|
|---|
| 34 | # endif
|
|---|
| 35 | #else
|
|---|
| 36 | // On other platforms, simply ignore this
|
|---|
| 37 | # define PACPUSLIB_API
|
|---|
| 38 | #endif
|
|---|
| 39 |
|
|---|
| [69] | 40 | /// @def PACPUS_DEPRECATED(func)
|
|---|
| 41 | /// Develops to the function or method declaration @b func
|
|---|
| 42 | /// and marks it as deprecated.
|
|---|
| 43 |
|
|---|
| 44 | /// @def PACPUS_DEPRECATED(func, msg)
|
|---|
| 45 | /// Develops to the function or method declaration @b func
|
|---|
| 46 | /// and marks it as deprecated with a given comment @b msg.
|
|---|
| [3] | 47 | #ifdef __GNUC__
|
|---|
| [59] | 48 | # define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
|
|---|
| 49 | # define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
|
|---|
| [3] | 50 | #elif defined(_MSC_VER)
|
|---|
| [59] | 51 | # define PACPUS_DEPRECATED(func) __declspec(deprecated) func
|
|---|
| 52 | # define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
|
|---|
| [3] | 53 | #else
|
|---|
| 54 | # pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
|
|---|
| [59] | 55 | # define PACPUS_DEPRECATED(func) func
|
|---|
| 56 | # define PACPUS_DEPRECATED_MSG(func, msg) func
|
|---|
| [3] | 57 | #endif
|
|---|
| 58 |
|
|---|
| [31] | 59 | #endif // DEF_PACPUS_H
|
|---|