Unity Scopes API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Version.h
1 //
2 // DO NOT EDIT Version.h (this file)! It is generated from Version.h.in.
3 //
4 
5 /*
6  * Copyright (C) 2013 Canonical Ltd
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License version 3 as
10  * published by the Free Software Foundation.
11  *
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 Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  * Authored by: Michi Henning <michi.henning@canonical.com>
21  */
22 
23 #ifndef UNITY_SCOPES_VERSION_H
24 #define UNITY_SCOPES_VERSION_H
25 
26 #ifndef UNITY_SCOPES_VERSION_MAJOR
27 # define UNITY_SCOPES_VERSION_MAJOR 0
28 #endif
29 
30 #ifndef UNITY_SCOPES_VERSION_MINOR
31 # define UNITY_SCOPES_VERSION_MINOR 4
32 #endif
33 
34 #ifndef UNITY_SCOPES_VERSION_MICRO
35 # define UNITY_SCOPES_VERSION_MICRO 2
36 #endif
37 
38 #define UNITY_SCOPES_VERSION_STR(s) #s
39 #define UNITY_SCOPES_VERSION_XSTR(s) UNITY_SCOPES_VERSION_STR(s)
40 
41 #define UNITY_SCOPES_VERSION_STRING UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPES_VERSION_MAJOR) "." \
42  UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPES_VERSION_MINOR) "." \
43  UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPES_VERSION_MICRO)
44 
48 namespace unity
49 {
50 
54 namespace scopes
55 {
56 
77 int major_version();
78 
84 int minor_version();
85 
91 int micro_version();
92 
99 const char* version_string(); // Returns "major.minor.micro"
100 
102 
103 // TODO: Add methods to report compiler version and compiler flags
104 
105 } // namespace scopes
106 
107 } // namespace unity
108 
109 #endif
int major_version()
Returns the major version number of the Unity scopes library.
Definition: Version.cpp:27
const char * version_string()
Returns the Unity scopes version as a string in the format <major>.<minor>.<micro>.
Definition: Version.cpp:43
int micro_version()
Returns the micro version number of the Unity scopes library.
Definition: Version.cpp:37
int minor_version()
Returns the minor version number of the Unity scopes library.
Definition: Version.cpp:32