From: Christian Heinrich Date: Tue, 20 Mar 2018 13:26:27 +0000 (+0100) Subject: [SMPI] Replay: Move CHECK_ACTION_PARAMS macro to the top of the file X-Git-Tag: v3.20~600^2~39 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc6f9c6d91e16fedad411f4e0c403d2174af735a [SMPI] Replay: Move CHECK_ACTION_PARAMS macro to the top of the file --- diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index 60a487b7aa..676685c42a 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -27,6 +27,16 @@ static std::unordered_map*> reqq; static MPI_Datatype MPI_DEFAULT_TYPE; +#define CHECK_ACTION_PARAMS(action, mandatory, optional) {\ + int i=0;\ + while(action[i]!=nullptr)\ + i++;\ + if(iencode(); } -#define CHECK_ACTION_PARAMS(action, mandatory, optional) {\ - int i=0;\ - while(action[i]!=nullptr)\ - i++;\ - if(i