Unity Scopes API
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 #pragma once
24 
25 #ifndef UNITY_SCOPES_VERSION_MAJOR
26 # define UNITY_SCOPES_VERSION_MAJOR 0
27 #endif
28 
29 #ifndef UNITY_SCOPES_VERSION_MINOR
30 # define UNITY_SCOPES_VERSION_MINOR 6
31 #endif
32 
33 #ifndef UNITY_SCOPES_VERSION_MICRO
34 # define UNITY_SCOPES_VERSION_MICRO 19
35 #endif
36 
37 #define UNITY_SCOPES_VERSION_STR(s) #s
38 #define UNITY_SCOPES_VERSION_XSTR(s) UNITY_SCOPES_VERSION_STR(s)
39 
40 #define UNITY_SCOPES_VERSION_STRING UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPES_VERSION_MAJOR) "." \
41  UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPES_VERSION_MINOR) "." \
42  UNITY_SCOPES_VERSION_XSTR(UNITY_SCOPES_VERSION_MICRO)
43 
44 #define UNITY_SCOPES_VERSIONED_CREATE_SYM unity_scope_create_v ## 3
45 
49 namespace unity
50 {
51 
55 namespace scopes
56 {
57 
78 int major_version();
79 
85 int minor_version();
86 
92 int micro_version();
93 
100 const char* version_string(); // Returns "major.minor.micro"
101 
103 
104 // TODO: Add methods to report compiler version and compiler flags
105 
106 } // namespace scopes
107 
108 } // namespace unity
int major_version()
Returns the major version number of the Unity scopes library.
Definition: Version.cpp:27
Top-level namespace for all things Unity-related.
Definition: Version.h:49
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