-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathVersion.h
39 lines (28 loc) · 855 Bytes
/
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
// Version.h
// Revision number is used in next Release build
#pragma once
#ifndef VERSION_NUM_H
#define VERSION_NUM_H
#define STR_(s) #s
#define STR(s) STR_(s)
#define VERSION_MAJOR 3
#define VERSION_MINOR 4
#define VERSION_REVISION 0
#define BUILD_TIME 2404201803
#define VERSION_FILE VERSION_MAJOR,VERSION_MINOR,VERSION_REVISION
#define VERSION_FILE_STR \
STR(VERSION_MAJOR) \
"." STR(VERSION_MINOR) \
"." STR(VERSION_REVISION)
#define VERSION_PRODUCT VERSION_MAJOR,VERSION_MINOR,VERSION_REVISION,BUILD_TIME
#define VERSION_PRODUCT_STR \
STR(VERSION_MAJOR) \
"." STR(VERSION_MINOR) \
"." STR(VERSION_REVISION) \
"." STR(BUILD_TIME)
#ifdef DEBUG
#define VERSION_DISPLAY VERSION_FILE_STR "d" STR(BUILD_TIME)
#else
#define VERSION_DISPLAY VERSION_FILE_STR "r" STR(BUILD_TIME)
#endif // DEBUG
#endif // VERSION_NUM_H