From 4688c235f5f248a695b32d27f60014cbb15be960 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Thu, 12 Dec 2019 17:38:29 +0900 Subject: [PATCH] refactor: rename internal macro value --- toml/color.hpp | 4 ++-- toml/region.hpp | 2 +- toml/value.hpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/toml/color.hpp b/toml/color.hpp index 479c26a..d85a848 100644 --- a/toml/color.hpp +++ b/toml/color.hpp @@ -4,9 +4,9 @@ #include #ifdef TOML11_COLORIZE_ERROR_MESSAGE -#define TOML11_COLORED_MESSAGE_ACTIVATED true +#define TOML11_ERROR_MESSAGE_COLORIZED true #else -#define TOML11_COLORED_MESSAGE_ACTIVATED false +#define TOML11_ERROR_MESSAGE_COLORIZED false #endif namespace toml diff --git a/toml/region.hpp b/toml/region.hpp index 18c5248..3c3f7c1 100644 --- a/toml/region.hpp +++ b/toml/region.hpp @@ -420,7 +420,7 @@ struct region final : public region_base inline std::string format_underline(const std::string& message, const std::vector>& reg_com, const std::vector& helps = {}, - const bool colorize = TOML11_COLORED_MESSAGE_ACTIVATED) + const bool colorize = TOML11_ERROR_MESSAGE_COLORIZED) { assert(!reg_com.empty()); diff --git a/toml/value.hpp b/toml/value.hpp index a9d2ba4..b5a4e86 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -1861,7 +1861,7 @@ template class T, template clas inline std::string format_error(const std::string& err_msg, const basic_value& v, const std::string& comment, std::vector hints = {}, - const bool colorize = TOML11_COLORED_MESSAGE_ACTIVATED) + const bool colorize = TOML11_ERROR_MESSAGE_COLORIZED) { return detail::format_underline(err_msg, std::vector>{ @@ -1874,7 +1874,7 @@ inline std::string format_error(const std::string& err_msg, const toml::basic_value& v1, const std::string& comment1, const toml::basic_value& v2, const std::string& comment2, std::vector hints = {}, - const bool colorize = TOML11_COLORED_MESSAGE_ACTIVATED) + const bool colorize = TOML11_ERROR_MESSAGE_COLORIZED) { return detail::format_underline(err_msg, std::vector>{ @@ -1889,7 +1889,7 @@ inline std::string format_error(const std::string& err_msg, const toml::basic_value& v2, const std::string& comment2, const toml::basic_value& v3, const std::string& comment3, std::vector hints = {}, - const bool colorize = TOML11_COLORED_MESSAGE_ACTIVATED) + const bool colorize = TOML11_ERROR_MESSAGE_COLORIZED) { return detail::format_underline(err_msg, std::vector>{