GooseEYE 0.9.1
Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
1
7#ifndef GOOSEEYE_VERSION_HPP
8#define GOOSEEYE_VERSION_HPP
9
10#include "version.h"
11
12namespace GooseEYE {
13
14namespace detail {
15
16inline std::string unquote(const std::string& arg)
17{
18 std::string ret = arg;
19 ret.erase(std::remove(ret.begin(), ret.end(), '\"'), ret.end());
20 return ret;
21}
22
23} // namespace detail
24
25inline std::string version()
26{
27 return detail::unquote(std::string(QUOTE(GOOSEEYE_VERSION)));
28}
29
30} // namespace GooseEYE
31
32#endif
Toolbox to compute statistics.
Definition config.h:128
std::string version()
Return version string, e.g.
Definition version.hpp:25
#define GOOSEEYE_VERSION
Current version.
Definition version.h:33