source: pacpusframework/trunk/include/Pacpus/kernel/pacpus.h@ 72

Last change on this file since 72 was 71, checked in by Marek Kurdej, 12 years ago

Added: more documentation.
doc/doxyfile.in: turned on BUILTIN_STL_SUPPORT in Doxygen.
Added: LICENSE-header.txt to be included in all source files.

  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[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 71 2013-01-10 14:07:34Z 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///
[71]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
[70]44/// @def PACPUS_DEPRECATED_MSG(func, msg)
[69]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
Note: See TracBrowser for help on using the repository browser.