50#error Not implemented.
52 inline constexpr std::string_view
Red =
"\x1b[1;31m";
53 inline constexpr std::string_view
Green =
"\x1b[1;32m";
54 inline constexpr std::string_view
Yellow =
"\x1b[1;33m";
55 inline constexpr std::string_view
Blue =
"\x1b[1;34m";
56 inline constexpr std::string_view
Magenta =
"\x1b[1;35m";
57 inline constexpr std::string_view
Cyan =
"\x1b[1;36m";
58 inline constexpr std::string_view
Reset =
"\x1b[0m";
63#define LOG_MSG(color, msg) std::cout << color << msg << ConsoleColours::Reset << std::endl;
65#define LOG_MSG_ONCE(color, msg) \
67 static bool msg_shown = false; \
75#define LOG_MSG_INFO(msg) LOG_MSG(ConsoleColours::Green, msg)
76#define LOG_MSG_WARN(msg) LOG_MSG(ConsoleColours::Yellow, msg)
77#define LOG_MSG_ERROR(msg) LOG_MSG(ConsoleColours::Red, msg)
79#define LOG_MSG_INFO_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Green, msg)
80#define LOG_MSG_WARN_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Yellow, msg)
81#define LOG_MSG_ERROR_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Red, msg)
constexpr std::string_view Red
constexpr std::string_view Blue
constexpr std::string_view Yellow
constexpr std::string_view Magenta
constexpr std::string_view Cyan
constexpr std::string_view Green
constexpr std::string_view Reset