From 14bde56daf188bfc027dc8ead5b45ec0aa1109d6 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Thu, 1 Apr 2021 01:51:31 -0400 Subject: update rest grapher is still broken refactored io / error handling a bit --- common/rawaccel-version.h | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'common/rawaccel-version.h') diff --git a/common/rawaccel-version.h b/common/rawaccel-version.h index 40ff2d2..de8644b 100644 --- a/common/rawaccel-version.h +++ b/common/rawaccel-version.h @@ -6,21 +6,31 @@ #define RA_OS "Win7+" -#define M_STR_HELPER(x) #x -#define M_STR(x) M_STR_HELPER(x) +#define RA_M_STR_HELPER(x) #x +#define RA_M_STR(x) RA_M_STR_HELPER(x) -#define RA_VER_STRING M_STR(RA_VER_MAJOR) "." M_STR(RA_VER_MINOR) "." M_STR(RA_VER_PATCH) +#define RA_VER_STRING RA_M_STR(RA_VER_MAJOR) "." RA_M_STR(RA_VER_MINOR) "." RA_M_STR(RA_VER_PATCH) namespace rawaccel { - struct version_t { - int major; - int minor; - int patch; - }; - + struct version_t { + int major; + int minor; + int patch; + }; + + constexpr bool operator<(const version_t& lhs, const version_t& rhs) + { + return (lhs.major != rhs.major) ? + (lhs.major < rhs.major) : + (lhs.minor != rhs.minor) ? + (lhs.minor < rhs.minor) : + (lhs.patch < rhs.patch) ; + } + + inline constexpr version_t version = { RA_VER_MAJOR, RA_VER_MINOR, RA_VER_PATCH }; #ifndef _KERNEL_MODE - inline constexpr version_t min_driver_version = { 1, 4, 0 }; + inline constexpr version_t min_driver_version = { 1, 4, 0 }; #endif } -- cgit v1.2.3 From 4995368332953c3a3bffa4599ba0bbac16ad7018 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Wed, 14 Apr 2021 14:00:30 -0400 Subject: bump version --- common/rawaccel-version.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/rawaccel-version.h') diff --git a/common/rawaccel-version.h b/common/rawaccel-version.h index de8644b..384ba6f 100644 --- a/common/rawaccel-version.h +++ b/common/rawaccel-version.h @@ -1,8 +1,8 @@ #pragma once #define RA_VER_MAJOR 1 -#define RA_VER_MINOR 4 -#define RA_VER_PATCH 3 +#define RA_VER_MINOR 5 +#define RA_VER_PATCH 0 #define RA_OS "Win7+" @@ -30,7 +30,7 @@ namespace rawaccel { inline constexpr version_t version = { RA_VER_MAJOR, RA_VER_MINOR, RA_VER_PATCH }; #ifndef _KERNEL_MODE - inline constexpr version_t min_driver_version = { 1, 4, 0 }; + inline constexpr version_t min_driver_version = { 1, 5, 0 }; #endif } -- cgit v1.2.3