
Go to the documentation of this file.
4 #ifndef OPENRAVE_DEFINITIONS_H
5 #define OPENRAVE_DEFINITIONS_H
7 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_MSC_VER)
8 #define OPENRAVE_HELPER_DLL_IMPORT __declspec(dllimport)
9 #define OPENRAVE_HELPER_DLL_EXPORT __declspec(dllexport)
10 #define OPENRAVE_HELPER_DLL_LOCAL
13 #define OPENRAVE_HELPER_DLL_IMPORT __attribute__ ((visibility("default")))
14 #define OPENRAVE_HELPER_DLL_EXPORT __attribute__ ((visibility("default")))
15 #define OPENRAVE_HELPER_DLL_LOCAL __attribute__ ((visibility("hidden")))
17 #define OPENRAVE_HELPER_DLL_IMPORT
18 #define OPENRAVE_HELPER_DLL_EXPORT
19 #define OPENRAVE_HELPER_DLL_LOCAL
26 #if defined(OPENRAVE_DLL) || defined(OPENRAVE_CORE_DLL) // defined if OpenRAVE is compiled as a DLL
27 #ifdef OPENRAVE_DLL_EXPORTS // defined if we are building the OpenRAVE DLL (instead of using it)
28 #define OPENRAVE_API OPENRAVE_HELPER_DLL_EXPORT
30 #define OPENRAVE_API OPENRAVE_HELPER_DLL_IMPORT
31 #endif // OPENRAVE_DLL_EXPORTS
32 #define OPENRAVE_LOCAL OPENRAVE_HELPER_DLL_LOCAL
33 #else // OPENRAVE_DLL is not defined: this means OpenRAVE is a static lib.
35 #define OPENRAVE_LOCAL
36 #endif // OPENRAVE_DLL
38 #define OPENRAVE_VERSION_MAJOR 0
39 #define OPENRAVE_VERSION_MINOR 9
40 #define OPENRAVE_VERSION_PATCH 0
41 #define OPENRAVE_VERSION_COMBINED(major, minor, patch) (((major) << 16) | ((minor) << 8) | (patch))
42 #define OPENRAVE_VERSION OPENRAVE_VERSION_COMBINED(OPENRAVE_VERSION_MAJOR, OPENRAVE_VERSION_MINOR, OPENRAVE_VERSION_PATCH)
43 #define OPENRAVE_VERSION_EXTRACT_MAJOR(version) (((version)>>16)&0xff)
44 #define OPENRAVE_VERSION_EXTRACT_MINOR(version) (((version)>>8)&0xff)
45 #define OPENRAVE_VERSION_EXTRACT_PATCH(version) (((version))&0xff)
46 #define OPENRAVE_VERSION_STRING "0.9.0"
47 #define OPENRAVE_VERSION_STRING_FORMAT(version) boost::str(boost::format("%s.%s.%s")%(OPENRAVE_VERSION_EXTRACT_MAJOR(version))%(OPENRAVE_VERSION_EXTRACT_MINOR(version))%(OPENRAVE_VERSION_EXTRACT_PATCH(version)))
49 #define OPENRAVE_VERSION_GE(major1, minor1, patch1, major2, minor2, patch2) (OPENRAVE_VERSION_COMBINED(major1, minor1, patch1) >= OPENRAVE_VERSION_COMBINED(major2, minor2, patch2))
50 #define OPENRAVE_VERSION_MINIMUM(major, minor, patch) OPENRAVE_VERSION_GE(OPENRAVE_VERSION_MAJOR, OPENRAVE_VERSION_MINOR, OPENRAVE_VERSION_PATCH, major, minor, patch)
54 #define OPENRAVE_PRECISION 1
56 #define OPENRAVE_PLUGINS_INSTALL_DIR "/var/lib/jenkins/workspace/openrave_documentation/install/share/openrave-0.9/plugins"
57 #define OPENRAVE_DATA_INSTALL_DIR "/var/lib/jenkins/workspace/openrave_documentation/install/share/openrave-0.9"
58 #define OPENRAVE_PYTHON_INSTALL_DIR "/var/lib/jenkins/workspace/openrave_documentation/install/lib/python2.6/site-packages"
61 #define OPENRAVE_PYTHON_EXECUTABLE "/usr/bin/python2.6"