mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
Update testlib.h
This commit is contained in:
1 parent
f1f383c572
commit
768f6b4d80
1 file changed
+5
-3
@@ -1389,10 +1389,12 @@ resultExitCode(TResult r) {
|
|||||||
return FAIL_EXIT_CODE;
|
return FAIL_EXIT_CODE;
|
||||||
}
|
}
|
||||||
void InStream::textColor(
|
void InStream::textColor(
|
||||||
#if !(defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)) && defined(__GNUC__)__attribute__((unused))
|
#if !(defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)) && defined(__GNUC__)
|
||||||
|
__attribute__((unused))
|
||||||
#endif
|
#endif
|
||||||
WORD color) {
|
WORD color) {
|
||||||
#if defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
|
#if defined(ON_WINDOWS) && (!defined(_MSC_VER) || _MSC_VER > 1400)
|
||||||
|
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
|
||||||
SetConsoleTextAttribute(handle, color);
|
SetConsoleTextAttribute(handle, color);
|
||||||
#endif
|
#endif
|
||||||
#if !defined(ON_WINDOWS) && defined(__GNUC__)
|
#if !defined(ON_WINDOWS) && defined(__GNUC__)
|
||||||
@@ -2860,4 +2862,4 @@ void println(const A& a, const B& b, const C& c, const D& d, const E& e, const F
|
|||||||
std::cout << std::endl;
|
std::cout << std::endl;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user