rawaccel/common/rawaccel-version.h
a1xd 14bde56daf update rest
grapher is still broken

refactored io / error handling a bit
2021-04-01 01:51:31 -04:00

36 lines
866 B
C++

#pragma once
#define RA_VER_MAJOR 1
#define RA_VER_MINOR 4
#define RA_VER_PATCH 3
#define RA_OS "Win7+"
#define RA_M_STR_HELPER(x) #x
#define RA_M_STR(x) RA_M_STR_HELPER(x)
#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;
};
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 };
#endif
}