source: pacpusframework/branches/0.0.x/include/Pacpus/kernel/pacpus.h

Last change on this file was 116, checked in by Marek Kurdej, 11 years ago

Added: PacpusException - base class for all exceptions. DbiteExceptions inherits from it.
Added: PacpusLibConfig.h - dllimport/dllexport clauses separated from pacpus.h.
Update: comments.

  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
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 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.
14
15#ifndef DEF_PACPUS_H
16#define DEF_PACPUS_H
17
18#include <Pacpus/kernel/PacpusLibConfig.h>
19#include <Pacpus/kernel/road_time.h>
20
21/// Pi math constant
22///
23/// @deprecated Use M_PI from \<cmath\>.
24#ifndef PACPUS_PI
25# define PACPUS_PI 3.1415926
26#endif
27
28/// @def PACPUS_DEPRECATED(func)
29/// Develops to the function or method declaration @b func
30/// and marks it as deprecated.
31
32/// @def PACPUS_DEPRECATED_MSG(func, msg)
33/// Develops to the function or method declaration @b func
34/// and marks it as deprecated with a given comment @b msg.
35#ifdef __GNUC__
36# define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
37# define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
38#elif defined(_MSC_VER)
39# define PACPUS_DEPRECATED(func) __declspec(deprecated) func
40# define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
41#else
42# pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
43# define PACPUS_DEPRECATED(func) func
44# define PACPUS_DEPRECATED_MSG(func, msg) func
45#endif
46
47#endif // DEF_PACPUS_H
Note: See TracBrowser for help on using the repository browser.