| 78 | } |
| 79 | |
| 80 | static 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 |
no outgoing calls
no test coverage detected