X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/17d305e0f3a8c6f813bda1aacad5891d67fd1e3c..8ca88f5944989c937734b5c28bfdd074aa990367:/src/smpi/bindings/smpi_mpi.cpp diff --git a/src/smpi/bindings/smpi_mpi.cpp b/src/smpi/bindings/smpi_mpi.cpp index 00d23f8510..8a4498818a 100644 --- a/src/smpi/bindings/smpi_mpi.cpp +++ b/src/smpi/bindings/smpi_mpi.cpp @@ -39,12 +39,12 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_mpi, smpi, "Logging specific to SMPI ,(mpi) char error_string[MPI_MAX_ERROR_STRING]; \ int error_size; \ PMPI_Error_string(ret, error_string, &error_size); \ - if(errhan==nullptr || errhan->errhandler()==MPI_ERRORS_RETURN) \ + if ((errhan) == nullptr || (errhan)->errhandler() == MPI_ERRORS_RETURN) \ XBT_WARN("%s - returned %.*s instead of MPI_SUCCESS", __func__, error_size, error_string); \ - else if(errhan->errhandler()==MPI_ERRORS_ARE_FATAL) \ + else if ((errhan)->errhandler() == MPI_ERRORS_ARE_FATAL) \ xbt_die("%s - returned %.*s instead of MPI_SUCCESS", __func__, error_size, error_string); \ else \ - errhan->errhandler()->call(errhan, ret); \ + (errhan)->errhandler()->call((errhan), ret); \ MC_assert(not MC_is_active()); /* Only fail in MC mode */ \ } \ XBT_VERB("SMPI - Leaving %s", __func__); \