From 531a3f117d88940a49a6f2b6406bdcc55223f5f4 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 19 Apr 2018 13:11:11 +0200 Subject: [PATCH] Deprecate xbt_cfg_get_(). --- include/xbt/config.h | 9 ++++++--- include/xbt/config.hpp | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/include/xbt/config.h b/include/xbt/config.h index a555624466..6c4219acf0 100644 --- a/include/xbt/config.h +++ b/include/xbt/config.h @@ -140,9 +140,12 @@ XBT_PUBLIC void xbt_cfg_help(); * @{ */ -XBT_PUBLIC int xbt_cfg_get_int(const char* name); -XBT_PUBLIC double xbt_cfg_get_double(const char* name); -XBT_PUBLIC int xbt_cfg_get_boolean(const char* name); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config") XBT_PUBLIC + int xbt_cfg_get_int(const char* name); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config") XBT_PUBLIC + double xbt_cfg_get_double(const char* name); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config") XBT_PUBLIC + int xbt_cfg_get_boolean(const char* name); /** @} */ diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 92ecb49a60..4521614f25 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -258,6 +258,7 @@ public: } } -XBT_PUBLIC std::string xbt_cfg_get_string(const char* name); +XBT_ATTRIB_DEPRECATED_v323("Please use simgrid::config::get_config") XBT_PUBLIC std::string + xbt_cfg_get_string(const char* name); #endif -- 2.20.1