MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / CheckOne

Function CheckOne

Tests/PresentMon.cpp:34–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34size_t CheckOne(size_t const* columnIndex, bool* ok, std::initializer_list<PresentMonCsv::Header> const& headers)
35{
36 *ok = true;
37 size_t i = 0;
38 for (auto const& h : headers) {
39 if (columnIndex[h] != SIZE_MAX) {
40 for (auto const& h2 : headers) {
41 if (h2 != h && columnIndex[h2] != SIZE_MAX) {
42 *ok = false;
43 break;
44 }
45 }
46 return i;
47 }
48 ++i;
49 }
50 *ok = false;
51 return SIZE_MAX;
52}
53
54bool CheckAllIfAny(size_t const* columnIndex, bool* ok, std::initializer_list<PresentMonCsv::Header> const& headers)
55{

Callers 1

OpenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected