From b4a3a403e6ef2af4cb1f1d8ad59c8547f094ac3c Mon Sep 17 00:00:00 2001 From: "Yu-Hsiang M. Tsai" Date: Mon, 2 Dec 2024 16:32:51 +0100 Subject: [PATCH] manual changes --- core/config/parse_macro.hpp | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/core/config/parse_macro.hpp b/core/config/parse_macro.hpp index 273bc8b1a9f..728fceabee1 100644 --- a/core/config/parse_macro.hpp +++ b/core/config/parse_macro.hpp @@ -16,8 +16,7 @@ // for value_type only -#define GKO_PARSE_VALUE_TYPE_BASE_(_type, _configurator, \ - _value_type_list_base) \ +#define GKO_PARSE_VALUE_TYPE_(_type, _configurator, _value_type_list) \ template <> \ deferred_factory_parameter \ parse( \ @@ -29,22 +28,21 @@ return gko::config::dispatch( \ config, context, updated, \ gko::config::make_type_selector(updated.get_value_typestr(), \ - _value_type_list_base)); \ + _value_type_list)); \ } \ static_assert(true, \ "This assert is used to counter the false positive extra " \ "semi-colon warnings") #define GKO_PARSE_VALUE_TYPE_BASE(_type, _configurator) \ - GKO_PARSE_VALUE_TYPE_BASE_(_type, _configurator, \ - gko::config::value_type_list_base()) + GKO_PARSE_VALUE_TYPE_(_type, _configurator, \ + gko::config::value_type_list_base()) -#define GKO_PARSE_VALUE_TYPE(_type, _configurator) \ - GKO_PARSE_VALUE_TYPE_BASE_(_type, _configurator, \ - gko::config::value_type_list()) +#define GKO_PARSE_VALUE_TYPE(_type, _configurator) \ + GKO_PARSE_VALUE_TYPE_(_type, _configurator, gko::config::value_type_list()) // for value_type and index_type -#define GKO_PARSE_VALUE_AND_INDEX_TYPE_BASE_(_type, _configurator, \ - _value_type_list_base) \ +#define GKO_PARSE_VALUE_AND_INDEX_TYPE_(_type, _configurator, \ + _value_type_list) \ template <> \ deferred_factory_parameter \ parse( \ @@ -56,7 +54,7 @@ return gko::config::dispatch( \ config, context, updated, \ gko::config::make_type_selector(updated.get_value_typestr(), \ - _value_type_list_base), \ + _value_type_list), \ gko::config::make_type_selector(updated.get_index_typestr(), \ gko::config::index_type_list())); \ } \ @@ -65,12 +63,12 @@ "semi-colon warnings") #define GKO_PARSE_VALUE_AND_INDEX_TYPE_BASE(_type, _configurator) \ - GKO_PARSE_VALUE_AND_INDEX_TYPE_BASE_(_type, _configurator, \ - gko::config::value_type_list_base()) + GKO_PARSE_VALUE_AND_INDEX_TYPE_(_type, _configurator, \ + gko::config::value_type_list_base()) -#define GKO_PARSE_VALUE_AND_INDEX_TYPE(_type, _configurator) \ - GKO_PARSE_VALUE_AND_INDEX_TYPE_BASE_(_type, _configurator, \ - gko::config::value_type_list()) +#define GKO_PARSE_VALUE_AND_INDEX_TYPE(_type, _configurator) \ + GKO_PARSE_VALUE_AND_INDEX_TYPE_(_type, _configurator, \ + gko::config::value_type_list()) #endif // GKO_CORE_CONFIG_PARSE_MACRO_HPP_