Obfuscation/libversion/fullversion.cpp

17 lines
346 B
C++

#include <string.h>
#include <version.h>
std::string getFullVersion()
{
static std::string fullVersion;
static bool init = false;
if (!init)
{
fullVersion = getanalyzeVersion();
std::string gitVersion = getGitVersion();
if (!gitVersion.empty()) fullVersion+=" ("+gitVersion+")";
init = true;
}
return fullVersion;
}