-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.h
44 lines (36 loc) · 1.21 KB
/
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
40
41
42
43
44
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include "util/defines.h"
#include <cstdint>
namespace sigma
{
/**
Holds Microsoft SIGMA version information. A SIGMAVersion contains four values:
1. The major version number;
2. The minor version number;
3. The patch version number;
4. The tweak version number.
Two versions of the library with the same major and minor versions are fully
compatible with each other. They are guaranteed to have the same public API.
Changes in the patch version number indicate totally internal changes, such
as bug fixes that require no changes to the public API. The tweak version
number is currently not used, and is expected to be 0.
*/
struct SIGMAVersion
{
/**
Holds the major version number.
*/
std::uint8_t major = SIGMA_VERSION_MAJOR;
/**
Holds the minor version number.
*/
std::uint8_t minor = SIGMA_VERSION_MINOR;
/**
Holds the patch version number.
*/
std::uint8_t patch = SIGMA_VERSION_PATCH;
std::uint8_t tweak = 0;
};
} // namespace sigma