Changeset 299 in pacpusframework for trunk


Ignore:
Timestamp:
04/08/14 08:52:07 (10 years ago)
Author:
Marek Kurdej
Message:

Separated PACPUS_DEPRECATED macros from pacpus.h into deprecated.h.

Location:
trunk/include/Pacpus
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/Pacpus/PacpusTools/geodesie.h

    r224 r299  
    2323#include "PacpusToolsConfig.h"
    2424
    25 #include <Pacpus/kernel/pacpus.h>
     25#include <Pacpus/kernel/deprecated.h>
    2626
    2727#include <boost/math/constants/constants.hpp>
  • trunk/include/Pacpus/kernel/XmlConfigFile.h

    r288 r299  
    2323#define DEF_PACPUS_XMLCONFIGFILE_H
    2424
    25 #include <Pacpus/kernel/pacpus.h>
     25#include <Pacpus/kernel/deprecated.h>
    2626#include <Pacpus/kernel/PacpusLibConfig.h>
    2727#include <Pacpus/kernel/XmlComponentConfig.h>
  • trunk/include/Pacpus/kernel/pacpus.h

    r198 r299  
    1717
    1818#include <Pacpus/kernel/road_time.h>
    19 
    20 /// @def PACPUS_DEPRECATED(func)
    21 /// Develops to the function or method declaration @b func
    22 /// and marks it as deprecated.
    23 
    24 /// @def PACPUS_DEPRECATED_MSG(func, msg)
    25 /// Develops to the function or method declaration @b func
    26 /// and marks it as deprecated with a given comment @b msg.
    27 #ifdef __GNUC__
    28 #   define PACPUS_DEPRECATED(func)              func __attribute__ ((deprecated))
    29 #   define PACPUS_DEPRECATED_MSG(func, msg)     PACPUS_DEPRECATED(func)
    30 #elif defined(_MSC_VER)
    31 #   define PACPUS_DEPRECATED(func)              __declspec(deprecated) func
    32 #   define PACPUS_DEPRECATED_MSG(func, msg)     __declspec(deprecated("was declared deprecated: " msg)) func
    33 #else
    34 #   pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
    35 #   define PACPUS_DEPRECATED(func)              func
    36 #   define PACPUS_DEPRECATED_MSG(func, msg)     func
    37 #endif
    3819
    3920struct donnees_gps
Note: See TracChangeset for help on using the changeset viewer.