MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / operator==

Function operator==

Tests/win32.cpp:8–14  ·  view source on GitHub ↗

to allow ASSERT_EQ with RECT

Source from the content-addressed store, hash-verified

6
7// to allow ASSERT_EQ with RECT
8static bool operator==(const RECT &left, const RECT &right) noexcept
9{
10 // make sure there's no padding
11 static_assert(sizeof(RECT) == 4 * sizeof(LONG));
12
13 return std::memcmp(&left, &right, sizeof(RECT)) == 0;
14}
15
16namespace {
17 static constexpr std::pair<std::wstring_view, std::wstring_view> differentContentCases[] = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected