Bitcoin
Macros | Functions | Variables
clientversion.h File Reference
#include <string>
#include <vector>

Go to the source code of this file.

Macros

#define STRINGIZE(X)   DO_STRINGIZE(X)
 
#define DO_STRINGIZE(X)   #X
 
#define COPYRIGHT_STR   "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL
 Copyright string used in Windows .rc files. More...
 

Functions

std::string FormatFullVersion ()
 
std::string FormatSubVersion (const std::string &name, int nClientVersion, const std::vector< std::string > &comments)
 

Variables

static const int CLIENT_VERSION
 
const std::string CLIENT_NAME
 
const std::string CLIENT_BUILD
 

Macro Definition Documentation

◆ COPYRIGHT_STR

#define COPYRIGHT_STR   "2009-" STRINGIZE(COPYRIGHT_YEAR) " " COPYRIGHT_HOLDERS_FINAL

Copyright string used in Windows .rc files.

◆ DO_STRINGIZE

#define DO_STRINGIZE (   X)    #X

◆ STRINGIZE

#define STRINGIZE (   X)    DO_STRINGIZE(X)

Converts the parameter X to a string after macro replacement on X has been performed. Don't merge these into one macro!

Function Documentation

◆ FormatFullVersion()

std::string FormatFullVersion ( )

◆ FormatSubVersion()

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/bitcoin/bips/blob/master/bip-0014.mediawiki)

Variable Documentation

◆ CLIENT_BUILD

const std::string CLIENT_BUILD

◆ CLIENT_NAME

const std::string CLIENT_NAME

◆ CLIENT_VERSION

const int CLIENT_VERSION
static
Initial value:
=
#define CLIENT_VERSION_REVISION
Definition: bitcoin_config.h:20
#define CLIENT_VERSION_BUILD
Definition: bitcoin_config.h:8
#define CLIENT_VERSION_MAJOR
Definition: bitcoin_config.h:14
#define CLIENT_VERSION_MINOR
Definition: bitcoin_config.h:17

bitcoind-res.rc includes this file, but it cannot cope with real c++ code. WINDRES_PREPROC is defined to indicate that its pre-processor is running. Anything other than a define should be guarded below.