MCPcopy Create free account
hub / github.com/apache/singa / GetColorAttribute

Function GetColorAttribute

test/gtest/gtest-all.cc:4044–4051  ·  view source on GitHub ↗

Returns the character attribute for the given color.

Source from the content-addressed store, hash-verified

4042
4043// Returns the character attribute for the given color.
4044WORD GetColorAttribute(GTestColor color) {
4045 switch (color) {
4046 case COLOR_RED: return FOREGROUND_RED;
4047 case COLOR_GREEN: return FOREGROUND_GREEN;
4048 case COLOR_YELLOW: return FOREGROUND_RED | FOREGROUND_GREEN;
4049 default: return 0;
4050 }
4051}
4052
4053#else
4054

Callers 1

ColoredPrintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected