blob: 405b7d8239633af823bcbe0a71dd8566ca71cc5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
namespace testing {
namespace internal {
enum GTestColor {
COLOR_DEFAULT,
COLOR_RED,
COLOR_GREEN,
COLOR_YELLOW
};
void ColoredPrintf(GTestColor color, const char* fmt, ...);
}
}
#define WARNING(...) \
ColoredPrintf(testing::internal::COLOR_YELLOW, "[ WARNING ] "), \
ColoredPrintf(testing::internal::COLOR_YELLOW, __VA_ARGS__), \
printf("\n")
|