Main Page
Namespaces
Classes
Files
File List
File Members
external
opw_kinematics
include
opw_kinematics
opw_macros.h
Go to the documentation of this file.
1
#ifndef OPW_MACROS_H
2
#define OPW_MACROS_H
3
4
#if defined(__GNUC__) || defined(__clang__)
5
#define DEPRECATED(X) __attribute__((deprecated(X)))
6
#elif defined(_MSC_VER)
7
#define DEPRECATED(X) __declspec(deprecated(X))
8
#else
9
#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
10
#define DEPRECATED(X)
11
#endif
12
13
#if defined(__GNUC__) || defined(__clang__)-Wdeprecated-declarations
14
#define OPW_IGNORE_WARNINGS_PUSH \
15
_Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wignored-qualifiers\"") \
16
_Pragma("GCC diagnostic ignored \"-Wunused-parameter\"") \
17
_Pragma("GCC diagnostic ignored \"-Wunused-variable\"") \
18
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
19
20
#define OPW_IGNORE_WARNINGS_POP _Pragma("GCC diagnostic pop")
21
22
#elif defined(_MSC_VER)
23
#define OPW_IGNORE_WARNINGS_PUSH
24
#define OPW_IGNORE_WARNINGS_POP
25
#else
26
#pragma message("WARNING: You need to implement OPW_IGNORE_WARNINGS_PUSH and OPW_IGNORE_WARNINGS_POP for this compiler")
27
#define DEPRECATED(X)
28
#endif
29
30
31
#endif // OPW_MACROS_H
moveit_opw_kinematics_plugin
Author(s): Jeroen De Maeyer, Simon Schmeisser (isys vision)
autogenerated on Wed Jun 3 2020 03:17:14