Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
hide references to current_handle inside *.cpp file, to avoid breaking if SMPI is...
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 7 Apr 2021 08:27:44 +0000 (10:27 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 7 Apr 2021 08:27:44 +0000 (10:27 +0200)
src/smpi/include/smpi_utils.hpp
src/smpi/internals/smpi_utils.cpp

index 29c0918..49106ed 100644 (file)
@@ -29,8 +29,7 @@ namespace utils {
   XBT_PUBLIC void print_time_analysis(double time);
   XBT_PUBLIC void print_memory_analysis();
   XBT_PUBLIC void print_current_handle();
-  static void set_current_handle(F2C* handle){current_handle=handle;}
-
+  XBT_PUBLIC void set_current_handle(F2C* handle);
 }
 }
 }
index 05cce1b..cc3fe5f 100644 (file)
@@ -179,6 +179,10 @@ void print_memory_analysis()
   }
 }
 
+void set_current_handle(F2C* handle){
+  current_handle=handle;
+}
+
 void print_current_handle(){
   if(current_handle){
     if(current_handle->call_location().empty())