15 #ifndef OPENSCENARIO_INTERPRETER__CONSOLE__IS_CONSOLE_HPP_
16 #define OPENSCENARIO_INTERPRETER__CONSOLE__IS_CONSOLE_HPP_
24 inline namespace console
27 if (os.rdbuf() == std::cout.rdbuf()) {
28 static const auto result{
static_cast<bool>(::isatty(STDOUT_FILENO))};
30 }
else if (os.rdbuf() == std::cerr.rdbuf()) {
31 static const auto result{
static_cast<bool>(::isatty(STDERR_FILENO))};
auto is_console
Definition: is_console.hpp:26