Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Deprecate Lua platform files.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Apr 2021 07:13:30 +0000 (09:13 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 13 Apr 2021 07:13:38 +0000 (09:13 +0200)
ChangeLog
src/surf/xml/surfxml_parseplatf.cpp

index 2e8cd4fbbbda630a9ca79066935d8198a41da064..002aa947a410268c7f3c9286554ba3397d573ba3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
 
 SimGrid (3.27.1) NOT RELEASED YET (v3.28 expected June 21. 2021, 03:32 UTC)
 
+LUA:
+ - Lua platform files are deprecated. Their support will be dropped after v3.31.
+
 XBT:
  - xbt_assert is not disabled anymore, even when built with enable_debug=off.
 
index 52019960a3cf641be214bee9cfe93234b2c61c11..2576e498ba2c4c4455fb30ded4cb72d0fcec0ac3 100644 (file)
@@ -72,6 +72,11 @@ void parse_platform_file(const std::string& file)
    */
   if (is_lua) {
 #if SIMGRID_HAVE_LUA
+    static bool already_warned = false;
+    if (not already_warned) { // XBT_ATTRIB_DEPRECATED_v332
+      XBT_WARN("You are using a lua platform file. This feature is deprecated and will disappear after SimGrid v3.31.");
+      already_warned = true;
+    }
     lua_State* L = luaL_newstate();
     luaL_openlibs(L);