DESERT 3.5.1
|
#include <iostream>
#include <string_view>
Go to the source code of this file.
Namespaces | |
namespace | ConsoleColours |
Macros | |
#define | LOG_MSG(color, msg) std::cout << color << msg << ConsoleColours::Reset << std::endl; |
#define | LOG_MSG_ONCE(color, msg) |
#define | LOG_MSG_INFO(msg) LOG_MSG(ConsoleColours::Green, msg) |
#define | LOG_MSG_WARN(msg) LOG_MSG(ConsoleColours::Yellow, msg) |
#define | LOG_MSG_ERROR(msg) LOG_MSG(ConsoleColours::Red, msg) |
#define | LOG_MSG_INFO_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Green, msg) |
#define | LOG_MSG_WARN_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Yellow, msg) |
#define | LOG_MSG_ERROR_ONCE(msg) LOG_MSG_ONCE(ConsoleColours::Red, msg) |
Variables | |
constexpr std::string_view | ConsoleColours::Red = "\x1b[1;31m" |
constexpr std::string_view | ConsoleColours::Green = "\x1b[1;32m" |
constexpr std::string_view | ConsoleColours::Yellow = "\x1b[1;33m" |
constexpr std::string_view | ConsoleColours::Blue = "\x1b[1;34m" |
constexpr std::string_view | ConsoleColours::Magenta = "\x1b[1;35m" |
constexpr std::string_view | ConsoleColours::Cyan = "\x1b[1;36m" |
constexpr std::string_view | ConsoleColours::Reset = "\x1b[0m" |
#define LOG_MSG | ( | color, | |
msg | |||
) | std::cout << color << msg << ConsoleColours::Reset << std::endl; |
#define LOG_MSG_ERROR | ( | msg | ) | LOG_MSG(ConsoleColours::Red, msg) |
#define LOG_MSG_ERROR_ONCE | ( | msg | ) | LOG_MSG_ONCE(ConsoleColours::Red, msg) |
#define LOG_MSG_INFO | ( | msg | ) | LOG_MSG(ConsoleColours::Green, msg) |
#define LOG_MSG_INFO_ONCE | ( | msg | ) | LOG_MSG_ONCE(ConsoleColours::Green, msg) |
#define LOG_MSG_ONCE | ( | color, | |
msg | |||
) |
#define LOG_MSG_WARN | ( | msg | ) | LOG_MSG(ConsoleColours::Yellow, msg) |
#define LOG_MSG_WARN_ONCE | ( | msg | ) | LOG_MSG_ONCE(ConsoleColours::Yellow, msg) |