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 6
32 #endif
33 
34 #ifndef UNITY_SCOPES_VERSION_MICRO
35 # define UNITY_SCOPES_VERSION_MICRO 1
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 
45 #define UNITY_SCOPES_VERSIONED_CREATE_SYM unity_scope_create_v ## 3
46 
50 namespace unity
51 {
52 
56 namespace scopes
57 {
58 
79 int major_version();
80 
86 int minor_version();
87 
93 int micro_version();
94 
101 const char* version_string(); // Returns "major.minor.micro"
102 
104 
105 // TODO: Add methods to report compiler version and compiler flags
106 
107 } // namespace scopes
108 
109 } // namespace unity
110 
111 #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 ...
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