OpenDDS  Snapshot(2023/04/28-20:55)
Version.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_VERSION_H
9 #define OPENDDS_VERSION_H
10 
11 #define OPENDDS_MAJOR_VERSION 3
12 #define OPENDDS_MINOR_VERSION 25
13 #define OPENDDS_MICRO_VERSION 0
14 #define OPENDDS_VERSION_METADATA "dev"
15 #define OPENDDS_IS_RELEASE 0
16 #define OPENDDS_VERSION "3.25.0-dev"
17 
18 #define OPENDDS_VERSION_AT_LEAST(MAJOR, MINOR, MICRO) (\
19  (OPENDDS_MAJOR_VERSION > (MAJOR)) || \
20  (OPENDDS_MAJOR_VERSION == (MAJOR) && OPENDDS_MINOR_VERSION >= (MINOR)) || \
21  (OPENDDS_MAJOR_VERSION == (MAJOR) && OPENDDS_MINOR_VERSION == (MINOR) && \
22  (OPENDDS_MICRO_VERSION >= (MICRO)) \
23  ) \
24 )
25 
26 #define OPENDDS_VERSION_EXACTLY(MAJOR, MINOR, MICRO) (OPENDDS_MAJOR_VERSION == (MAJOR) && \
27  OPENDDS_MINOR_VERSION == (MINOR) && OPENDDS_MICRO_VERSION == (MICRO))
28 
29 #define OPENDDS_VERSION_LESS_THAN(MAJOR, MINOR, MICRO) \
30  !OPENDDS_VERSION_AT_LEAST((MAJOR), (MINOR), (MICRO))
31 
32 // NOTE: These are deprecated
33 // lint.pl ignores nonprefixed_public_macros on next line
34 #define DDS_MAJOR_VERSION (OPENDDS_MAJOR_VERSION)
35 // lint.pl ignores nonprefixed_public_macros on next line
36 #define DDS_MINOR_VERSION (OPENDDS_MINOR_VERSION)
37 // lint.pl ignores nonprefixed_public_macros on next line
38 #define DDS_MICRO_VERSION (OPENDDS_MICRO_VERSION)
39 // lint.pl ignores nonprefixed_public_macros on next line
40 #define DDS_VERSION (OPENDDS_VERSION)
41 
42 #endif // OPENDDS_VERSION_H