MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getAppVersion

Function getAppVersion

src/date/buildDate.cpp:150–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150const char* getAppVersion() {
151 static std::string appVersion = "";
152 if (!appVersion.size()) {
153 std::ostringstream appVersionStream;
154 appVersionStream << getMajorMinorRevVersion() << "." << BZ_BUILD_DATE
155 << "-" << BZ_BUILD_TYPE << "-" << BZ_BUILD_OS;
156#ifdef HAVE_SDL
157 appVersionStream << "-SDL";
158#endif
159 appVersion = appVersionStream.str();
160 }
161 return appVersion.c_str();
162}
163
164std::string getOSString() {
165 std::string versionString = "unknown";

Callers 15

checkEchosMethod · 0.85
ListServerLinkMethod · 0.85
addMeMethod · 0.85
printVersionFunction · 0.85
addPlayerFunction · 0.85
bz_getServerVersionFunction · 0.85
CreateMapInfoFunction · 0.85
saveHeaderFunction · 0.85
operator()Method · 0.85
GetServerVersionFunction · 0.85
writeScreenshotFunction · 0.85
sendEnterMethod · 0.85

Calls 4

getMajorMinorRevVersionFunction · 0.85
strMethod · 0.80
c_strMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected