MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / GetColorAttribute

Function GetColorAttribute

tests/gtest/gtest-all.cc:4425–4432  ·  view source on GitHub ↗

Returns the character attribute for the given color.

Source from the content-addressed store, hash-verified

4423
4424// Returns the character attribute for the given color.
4425static WORD GetColorAttribute(GTestColor color) {
4426 switch (color) {
4427 case COLOR_RED: return FOREGROUND_RED;
4428 case COLOR_GREEN: return FOREGROUND_GREEN;
4429 case COLOR_YELLOW: return FOREGROUND_RED | FOREGROUND_GREEN;
4430 default: return 0;
4431 }
4432}
4433
4434static int GetBitOffset(WORD color_mask) {
4435 if (color_mask == 0) return 0;

Callers 1

GetNewColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected