A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplify (and maybe correct) script.
[simgrid.git]
/
src
/
smpi
/
bindings
/
smpi_mpi.cpp
diff --git
a/src/smpi/bindings/smpi_mpi.cpp
b/src/smpi/bindings/smpi_mpi.cpp
index
00d23f8
..
8a44988
100644
(file)
--- 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); \
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); \
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 \
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__); \
MC_assert(not MC_is_active()); /* Only fail in MC mode */ \
} \
XBT_VERB("SMPI - Leaving %s", __func__); \