MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / GetVersionStr

Function GetVersionStr

Source/Helper.cpp:29–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27#include "Helper.h"
28
29std::wstring GetVersionStr()
30{
31 std::wstring version = _CRT_WIDE(VERSION_STR);
32#if VER_RELEASE != 1
33 if (strcmp(BRANCH_STR, "master") != 0) {
34 version += std::format(L".{}", _CRT_WIDE(BRANCH_STR));
35 }
36 version += std::format(L" (git-{}-{})",
37 _CRT_WIDE(_CRT_STRINGIZE(REV_DATE)),
38 _CRT_WIDE(_CRT_STRINGIZE(REV_HASH))
39 );
40#endif
41#ifdef _WIN64
42 version.append(L" x64");
43#else
44 version.append(L" 32-bit");
45#endif
46#ifdef _DEBUG
47 version.append(L" DEBUG");
48#endif
49 return version;
50}
51
52LPCWSTR GetNameAndVersion()
53{

Callers 1

GetNameAndVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected