From: Arnaud Giersch Date: Thu, 19 Apr 2018 11:11:11 +0000 (+0200) Subject: Deprecate xbt_cfg_get_(). X-Git-Tag: v3.20~375 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/531a3f117d88940a49a6f2b6406bdcc55223f5f4 Deprecate xbt_cfg_get_(). --- 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