2
// DO NOT EDIT Version.h (this file)! It is generated from Version.h.cmake.
6
* Copyright (C) 2013 Canonical Ltd
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License version 3 as
10
* published by the Free Software Foundation.
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
* Authored by: Michi Henning <michi.henning@canonical.com>
23
#ifndef UNITY_SCOPES_VERSION_H
24
#define UNITY_SCOPES_VERSION_H
26
#define UNITY_SCOPES_VERSION_MAJOR 0
27
#define UNITY_SCOPES_VERSION_MINOR 1
28
#define UNITY_SCOPES_VERSION_MICRO 0
30
#define UNITY_SCOPES_VERSION_STRING "0.1.0"
39
\brief Class to obtain version information for the Scopes API at run time.
41
Version information is represented as
42
<i><<code>major</code>></i>.<i><<code>minor</code>></i>.<i><<code>micro</code>></i>.
44
Releases that differ in the major or minor version number are binary incompatible.
46
Releases of the library that differ only in the micro version number are binary compatible with older releases,
47
so client code does not need to be recompiled to use the newer library version.
49
A different minor version is compatible at the API level, that is, it may add new APIs, but does not change existing
50
ones. API clients must be recompiled for a new major version.
52
A different major version indicates incompatible API changes.
55
// Version could be a namespace instead of a class, but that requires a lower-case name,
56
// which is inconsistent with the remainder of the API.
62
\return The major version number.
64
static int major_version();
67
\return The minor version number.
69
static int minor_version();
72
\return The micro version number.
74
static int micro_version();
77
\return The version string in the format
78
<i><<code>major</code>></i>.<i><<code>minor</code>></i>.<i><<code>micro</code>></i>.
80
static const char* str(); // Returns "major.minor.micro"
82
// TODO: Add methods to report compiler version and compiler flags