[libcxx-commits] [libcxx] [libc++][print] Adds ostream overloads. (PR #73262)
Mark de Wever via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Dec 16 04:04:53 PST 2023
================
@@ -198,7 +198,11 @@ inline constexpr bool __use_unicode = true;
# endif
_LIBCPP_HIDE_FROM_ABI inline bool __is_terminal(FILE* __stream) {
-# ifdef _WIN32
+ // The macro _LIBCPP_TESTING_PRINT_IS_TERMINAL is used to change
+ // the behavior in the test. This is not part of the public API.
+# ifdef _LIBCPP_TESTING_PRINT_IS_TERMINAL
+ return _LIBCPP_TESTING_PRINT_IS_TERMINAL(__stream);
+# elif defined(_WIN32)
----------------
mordante wrote:
Did the other places in this file too.
https://github.com/llvm/llvm-project/pull/73262
More information about the libcxx-commits
mailing list