openMSX
Version.cc
Go to the documentation of this file.
1 #include "Version.hh"
2 #include "strCat.hh"
3 
4 namespace openmsx {
5 
6 #include "Version.ii"
7 
8 std::string Version::full()
9 {
10  std::string result = strCat("openMSX ", VERSION);
11  if (!RELEASE) strAppend(result, '-', REVISION);
12  return result;
13 }
14 
15 } // namespace openmsx
static const char *const VERSION
Definition: Version.hh:13
static const bool RELEASE
Definition: Version.hh:12
void strAppend(std::string &result, Ts &&...ts)
Definition: strCat.hh:644
static const char *const REVISION
Definition: Version.hh:14
Thanks to enen for testing this on a real cartridge:
Definition: Autofire.cc:5
static std::string full()
Definition: Version.cc:8
std::string strCat(Ts &&...ts)
Definition: strCat.hh:573