MCPcopy Create free account
hub / github.com/DFHack/dfhack / selectColor

Function selectColor

library/Debug.cpp:80–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static color_value selectColor(const DebugCategory::level msgLevel)
81{
82 switch(msgLevel) {
83 case DebugCategory::LTRACE:
84 return COLOR_BROWN;
85 case DebugCategory::LDEBUG:
86 return COLOR_LIGHTBLUE;
87 case DebugCategory::LWARNING:
88 return COLOR_YELLOW;
89 case DebugCategory::LERROR:
90 return COLOR_LIGHTRED;
91 case DebugCategory::LINFO:
92 default:
93 return COLOR_RESET;
94 }
95}
96
97#if __GNUC__
98// Allow gcc to optimize tls access. It also makes sure initialized is done as

Callers 1

ostream_proxy_prefixMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected