🧹 use inline constexpr in headers instead of static constexpr

This commit is contained in:
Vladislav Nepogodin 2024-07-01 16:23:04 +04:00
parent fc2c8ff3ce
commit 4a737fdf11
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9

View File

@ -7,23 +7,23 @@
#include <fmt/core.h> #include <fmt/core.h>
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
static constexpr auto RESET = "\033[0m"; inline constexpr auto RESET = "\033[0m";
static constexpr auto BLACK = "\033[30m"; /* Black */ inline constexpr auto BLACK = "\033[30m"; /* Black */
static constexpr auto RED = "\033[31m"; /* Red */ inline constexpr auto RED = "\033[31m"; /* Red */
static constexpr auto GREEN = "\033[32m"; /* Green */ inline constexpr auto GREEN = "\033[32m"; /* Green */
static constexpr auto YELLOW = "\033[33m"; /* Yellow */ inline constexpr auto YELLOW = "\033[33m"; /* Yellow */
static constexpr auto BLUE = "\033[34m"; /* Blue */ inline constexpr auto BLUE = "\033[34m"; /* Blue */
static constexpr auto MAGENTA = "\033[35m"; /* Magenta */ inline constexpr auto MAGENTA = "\033[35m"; /* Magenta */
static constexpr auto CYAN = "\033[36m"; /* Cyan */ inline constexpr auto CYAN = "\033[36m"; /* Cyan */
static constexpr auto WHITE = "\033[37m"; /* White */ inline constexpr auto WHITE = "\033[37m"; /* White */
static constexpr auto BOLDBLACK = "\033[1m\033[30m"; /* Bold Black */ inline constexpr auto BOLDBLACK = "\033[1m\033[30m"; /* Bold Black */
static constexpr auto BOLDRED = "\033[1m\033[31m"; /* Bold Red */ inline constexpr auto BOLDRED = "\033[1m\033[31m"; /* Bold Red */
static constexpr auto BOLDGREEN = "\033[1m\033[32m"; /* Bold Green */ inline constexpr auto BOLDGREEN = "\033[1m\033[32m"; /* Bold Green */
static constexpr auto BOLDYELLOW = "\033[1m\033[33m"; /* Bold Yellow */ inline constexpr auto BOLDYELLOW = "\033[1m\033[33m"; /* Bold Yellow */
static constexpr auto BOLDBLUE = "\033[1m\033[34m"; /* Bold Blue */ inline constexpr auto BOLDBLUE = "\033[1m\033[34m"; /* Bold Blue */
static constexpr auto BOLDMAGENTA = "\033[1m\033[35m"; /* Bold Magenta */ inline constexpr auto BOLDMAGENTA = "\033[1m\033[35m"; /* Bold Magenta */
static constexpr auto BOLDCYAN = "\033[1m\033[36m"; /* Bold Cyan */ inline constexpr auto BOLDCYAN = "\033[1m\033[36m"; /* Bold Cyan */
static constexpr auto BOLDWHITE = "\033[1m\033[37m"; /* Bold White */ inline constexpr auto BOLDWHITE = "\033[1m\033[37m"; /* Bold White */
#define output_inter(...) fmt::print(__VA_ARGS__) #define output_inter(...) fmt::print(__VA_ARGS__)
#define error_inter(...) fmt::print(stderr, fmt::fg(fmt::color::red), __VA_ARGS__) #define error_inter(...) fmt::print(stderr, fmt::fg(fmt::color::red), __VA_ARGS__)