Fabcoin Core  0.16.2
P2P Digital Currency
clientversion.h
Go to the documentation of this file.
1 // Copyright (c) 2009-2017 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef FABCOIN_CLIENTVERSION_H
6 #define FABCOIN_CLIENTVERSION_H
7 
8 #if defined(HAVE_CONFIG_H)
10 #endif //HAVE_CONFIG_H
11 
12 // Check that required client information is defined
13 #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)
14 #error Client version information missing: version is not defined by fabcoin-config.h or in any other way
15 #endif
16 
21 #define STRINGIZE(X) DO_STRINGIZE(X)
22 #define DO_STRINGIZE(X) #X
23 
25 #define COPYRIGHT_STR STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
26 
33 #if !defined(WINDRES_PREPROC)
34 
35 #include <string>
36 #include <vector>
37 
38 static const int CLIENT_VERSION =
39  1000000 * CLIENT_VERSION_MAJOR
40  + 10000 * CLIENT_VERSION_MINOR
43 
44 extern const std::string CLIENT_NAME;
45 extern const std::string CLIENT_BUILD;
46 
47 
48 std::string FormatFullVersion();
49 std::string FormatSubVersion(const std::string& name, int nClientVersion, const std::vector<std::string>& comments);
50 
51 #endif // WINDRES_PREPROC
52 
53 #endif // FABCOIN_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/fabcoin/bips/blob/master/bip...
#define CLIENT_VERSION_MINOR
#define CLIENT_VERSION_REVISION
const char * name
Definition: rest.cpp:36
#define CLIENT_VERSION_MAJOR
std::string FormatFullVersion()
#define CLIENT_VERSION_BUILD
const std::string CLIENT_NAME
const std::string CLIENT_BUILD