From 4a737fdf1124b2732694a6359c682de1d48664b8 Mon Sep 17 00:00:00 2001 From: Vladislav Nepogodin Date: Mon, 1 Jul 2024 16:23:04 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20use=20inline=20constexpr=20in=20?= =?UTF-8?q?headers=20instead=20of=20static=20constexpr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/definitions.hpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/definitions.hpp b/src/definitions.hpp index 43738bf..0a568ef 100644 --- a/src/definitions.hpp +++ b/src/definitions.hpp @@ -7,23 +7,23 @@ #include #include -static constexpr auto RESET = "\033[0m"; -static constexpr auto BLACK = "\033[30m"; /* Black */ -static constexpr auto RED = "\033[31m"; /* Red */ -static constexpr auto GREEN = "\033[32m"; /* Green */ -static constexpr auto YELLOW = "\033[33m"; /* Yellow */ -static constexpr auto BLUE = "\033[34m"; /* Blue */ -static constexpr auto MAGENTA = "\033[35m"; /* Magenta */ -static constexpr auto CYAN = "\033[36m"; /* Cyan */ -static constexpr auto WHITE = "\033[37m"; /* White */ -static constexpr auto BOLDBLACK = "\033[1m\033[30m"; /* Bold Black */ -static constexpr auto BOLDRED = "\033[1m\033[31m"; /* Bold Red */ -static constexpr auto BOLDGREEN = "\033[1m\033[32m"; /* Bold Green */ -static constexpr auto BOLDYELLOW = "\033[1m\033[33m"; /* Bold Yellow */ -static constexpr auto BOLDBLUE = "\033[1m\033[34m"; /* Bold Blue */ -static constexpr auto BOLDMAGENTA = "\033[1m\033[35m"; /* Bold Magenta */ -static constexpr auto BOLDCYAN = "\033[1m\033[36m"; /* Bold Cyan */ -static constexpr auto BOLDWHITE = "\033[1m\033[37m"; /* Bold White */ +inline constexpr auto RESET = "\033[0m"; +inline constexpr auto BLACK = "\033[30m"; /* Black */ +inline constexpr auto RED = "\033[31m"; /* Red */ +inline constexpr auto GREEN = "\033[32m"; /* Green */ +inline constexpr auto YELLOW = "\033[33m"; /* Yellow */ +inline constexpr auto BLUE = "\033[34m"; /* Blue */ +inline constexpr auto MAGENTA = "\033[35m"; /* Magenta */ +inline constexpr auto CYAN = "\033[36m"; /* Cyan */ +inline constexpr auto WHITE = "\033[37m"; /* White */ +inline constexpr auto BOLDBLACK = "\033[1m\033[30m"; /* Bold Black */ +inline constexpr auto BOLDRED = "\033[1m\033[31m"; /* Bold Red */ +inline constexpr auto BOLDGREEN = "\033[1m\033[32m"; /* Bold Green */ +inline constexpr auto BOLDYELLOW = "\033[1m\033[33m"; /* Bold Yellow */ +inline constexpr auto BOLDBLUE = "\033[1m\033[34m"; /* Bold Blue */ +inline constexpr auto BOLDMAGENTA = "\033[1m\033[35m"; /* Bold Magenta */ +inline constexpr auto BOLDCYAN = "\033[1m\033[36m"; /* Bold Cyan */ +inline constexpr auto BOLDWHITE = "\033[1m\033[37m"; /* Bold White */ #define output_inter(...) fmt::print(__VA_ARGS__) #define error_inter(...) fmt::print(stderr, fmt::fg(fmt::color::red), __VA_ARGS__)