Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RVersion.hxx
Go to the documentation of this file.
1#ifndef ROOT_RVERSION_HXX
2#define ROOT_RVERSION_HXX
3
4/* Update on release: */
5#define ROOT_VERSION_MAJOR 6
6#define ROOT_VERSION_MINOR 35
7#define ROOT_VERSION_PATCH 1
8#define ROOT_RELEASE_DATE "Nov 5 2024"
9
10/* Don't change the lines below. */
11
12/*
13 * These macros can be used in the following way:
14 *
15 * #if ROOT_VERSION_CODE >= ROOT_VERSION(6,32,4)
16 * #include <newheader.h>
17 * #else
18 * #include <oldheader.h>
19 * #endif
20 *
21*/
22
23#define ROOT_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
24#define ROOT_VERSION_CODE ROOT_VERSION(ROOT_VERSION_MAJOR, ROOT_VERSION_MINOR, ROOT_VERSION_PATCH)
25
26#define R__VERS_QUOTE1_MAJOR(P) #P
27#define R__VERS_QUOTE_MAJOR(P) R__VERS_QUOTE1_MAJOR(P)
28
29
30#if ROOT_VERSION_MINOR < 10
31#define R__VERS_QUOTE1_MINOR(P) "0" #P
32#else
33#define R__VERS_QUOTE1_MINOR(P) #P
34#endif
35#define R__VERS_QUOTE_MINOR(P) R__VERS_QUOTE1_MINOR(P)
36
37#if ROOT_VERSION_PATCH < 10
38#define R__VERS_QUOTE1_PATCH(P) "0" #P
39#else
40#define R__VERS_QUOTE1_PATCH(P) #P
41#endif
42#define R__VERS_QUOTE_PATCH(P) R__VERS_QUOTE1_PATCH(P)
43
44#define ROOT_RELEASE R__VERS_QUOTE_MAJOR(ROOT_VERSION_MAJOR) \
45 "." R__VERS_QUOTE_MINOR(ROOT_VERSION_MINOR) \
46 "." R__VERS_QUOTE_PATCH(ROOT_VERSION_PATCH)
47
48#endif // ROOT_RVERSION_H