My Project
Loading...
Searching...
No Matches
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#include <unity/SymbolExport.h>
24
25#ifndef UNITY_API_VERSION_H
26#define UNITY_API_VERSION_H
27
28#define UNITY_API_VERSION_MAJOR 0
29#define UNITY_API_VERSION_MINOR 1
30#define UNITY_API_VERSION_MICRO 6
31
32#define UNITY_API_VERSION_STRING "0.1.6"
33
37namespace unity
38{
39
43namespace api
44{
45
68UNITY_API
70int major_version();
71
78UNITY_API
80int minor_version();
81
88UNITY_API
90int micro_version();
91
99UNITY_API
101const char* str(); // Returns "major.minor.micro"
102
104
105// TODO: Add methods to report compiler version and compiler flags
106
107} // namespace api
108
109} // namespace unity
110
111#endif
const char * str()
Returns the Unity API version as a string in the format <major>.<minor>.<micro>.
Definition: Version.cpp:48
int major_version()
Returns the major version number of the Unity API library.
Definition: Version.cpp:30
int micro_version()
Returns the micro version number of the Unity API library.
Definition: Version.cpp:42
int minor_version()
Returns the minor version number of the Unity API library.
Definition: Version.cpp:36
Top-level namespace for all things Unity-related.
Definition: Version.h:38