From: Augustin Degomme Date: Wed, 7 Apr 2021 08:27:44 +0000 (+0200) Subject: hide references to current_handle inside *.cpp file, to avoid breaking if SMPI is... X-Git-Tag: v3.28~455^2~123 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1d1c49fa9ffd77a7413b7eb55b7a2c92225d1eb0 hide references to current_handle inside *.cpp file, to avoid breaking if SMPI is not compiled --- diff --git a/src/smpi/include/smpi_utils.hpp b/src/smpi/include/smpi_utils.hpp index 29c09185a7..49106ed53e 100644 --- a/src/smpi/include/smpi_utils.hpp +++ b/src/smpi/include/smpi_utils.hpp @@ -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); } } } diff --git a/src/smpi/internals/smpi_utils.cpp b/src/smpi/internals/smpi_utils.cpp index 05cce1b430..cc3fe5f788 100644 --- a/src/smpi/internals/smpi_utils.cpp +++ b/src/smpi/internals/smpi_utils.cpp @@ -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())