idle_detect  0.8.3.0
Provides overall idle detection for a linux computer
release.h
1 /*
2  * Copyright (C) 2025 James C. Owens
3  *
4  * This code is licensed under the MIT license. See LICENSE.md in the repository.
5  */
6 
7 #ifndef RELEASE_H
8 #define RELEASE_H
9 
10 #include <string>
11 
12 // release.h (Alternative)
13 #define IDLE_DETECT_VERSION_MAJOR 0
14 #define IDLE_DETECT_VERSION_MINOR 8
15 #define IDLE_DETECT_VERSION_PATCH 3
16 #define IDLE_DETECT_VERSION_TWEAK 0
17 
18 #define ID__STRINGIFY(x) #x
19 #define ID_STRINGIFY(x) ID__STRINGIFY(x)
20 
21 #define IDLE_DETECT_VERSION_STRING \
22 ID_STRINGIFY(IDLE_DETECT_VERSION_MAJOR) "." \
23  ID_STRINGIFY(IDLE_DETECT_VERSION_MINOR) "." \
24  ID_STRINGIFY(IDLE_DETECT_VERSION_PATCH) "." \
25  ID_STRINGIFY(IDLE_DETECT_VERSION_TWEAK)
26 
27 const std::string g_version_datetime = "20250810";
28 
29 const std::string g_version = std::string("version ") + std::string(IDLE_DETECT_VERSION_STRING) + " - " + g_version_datetime;
30 
31 #endif // RELEASE_H