Raven Core  3.0.0
P2P Digital Currency
clientversion.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2016 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_CLIENTVERSION_H
7 #define RAVEN_CLIENTVERSION_H
8 
9 #if defined(HAVE_CONFIG_H)
10 #include "config/raven-config.h"
11 #endif //HAVE_CONFIG_H
12 
13 // Check that required client information is defined
14 #if !defined(CLIENT_VERSION_MAJOR) || !defined(CLIENT_VERSION_MINOR) || !defined(CLIENT_VERSION_REVISION) || !defined(CLIENT_VERSION_BUILD) || !defined(CLIENT_VERSION_IS_RELEASE) || !defined(COPYRIGHT_YEAR)
15 #error Client version information missing: version is not defined by raven-config.h or in any other way
16 #endif
17 
22 #define STRINGIZE(X) DO_STRINGIZE(X)
23 #define DO_STRINGIZE(X) #X
24 
26 #define COPYRIGHT_STR "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
27 
34 #if !defined(WINDRES_PREPROC)
35 
36 #include <string>
37 #include <vector>
38 
39 static const int CLIENT_VERSION =
40  1000000 * CLIENT_VERSION_MAJOR
41  + 10000 * CLIENT_VERSION_MINOR
44 
45 extern const std::string CLIENT_NAME;
46 extern const std::string CLIENT_BUILD;
47 
48 
49 std::string FormatFullVersion();
50 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
51 
52 #endif // WINDRES_PREPROC
53 
54 #endif // RAVEN_CLIENTVERSION_H
std::string FormatSubVersion(const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
Format the subversion field according to BIP 14 spec (https://github.com/raven/bips/blob/master/bip-0...
std::string FormatFullVersion()
#define CLIENT_VERSION_REVISION
Definition: raven-config.h:24
const std::string CLIENT_NAME
#define CLIENT_VERSION_MINOR
Definition: raven-config.h:21
#define CLIENT_VERSION_MAJOR
Definition: raven-config.h:18
#define CLIENT_VERSION_BUILD
Definition: raven-config.h:12
const std::string CLIENT_BUILD