-
Notifications
You must be signed in to change notification settings - Fork 463
/
Version.h
42 lines (35 loc) · 1.38 KB
/
Version.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
*
*
* Distributed under the OpenDDS License.
* See: http://www.opendds.org/license.html
*/
#ifndef OPENDDS_VERSION_H
#define OPENDDS_VERSION_H
#define OPENDDS_MAJOR_VERSION 3
#define OPENDDS_MINOR_VERSION 26
#define OPENDDS_MICRO_VERSION 1
#define OPENDDS_VERSION_METADATA ""
#define OPENDDS_IS_RELEASE 1
#define OPENDDS_VERSION "3.26.1"
#define OPENDDS_VERSION_AT_LEAST(MAJOR, MINOR, MICRO) (\
(OPENDDS_MAJOR_VERSION > (MAJOR)) || \
(OPENDDS_MAJOR_VERSION == (MAJOR) && OPENDDS_MINOR_VERSION >= (MINOR)) || \
(OPENDDS_MAJOR_VERSION == (MAJOR) && OPENDDS_MINOR_VERSION == (MINOR) && \
(OPENDDS_MICRO_VERSION >= (MICRO)) \
) \
)
#define OPENDDS_VERSION_EXACTLY(MAJOR, MINOR, MICRO) (OPENDDS_MAJOR_VERSION == (MAJOR) && \
OPENDDS_MINOR_VERSION == (MINOR) && OPENDDS_MICRO_VERSION == (MICRO))
#define OPENDDS_VERSION_LESS_THAN(MAJOR, MINOR, MICRO) \
!OPENDDS_VERSION_AT_LEAST((MAJOR), (MINOR), (MICRO))
// NOTE: These are deprecated
// lint.pl ignores nonprefixed_public_macros on next line
#define DDS_MAJOR_VERSION (OPENDDS_MAJOR_VERSION)
// lint.pl ignores nonprefixed_public_macros on next line
#define DDS_MINOR_VERSION (OPENDDS_MINOR_VERSION)
// lint.pl ignores nonprefixed_public_macros on next line
#define DDS_MICRO_VERSION (OPENDDS_MICRO_VERSION)
// lint.pl ignores nonprefixed_public_macros on next line
#define DDS_VERSION (OPENDDS_VERSION)
#endif // OPENDDS_VERSION_H