Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / teshsuite / smpi / mpich3-test / rma / squelch.h
1 #ifndef SQUELCH_H_INCLUDED
2 #define SQUELCH_H_INCLUDED
3
4 static const int SQ_LIMIT   = 10;
5 static       int SQ_COUNT   = 0;
6 static       int SQ_VERBOSE = 0;
7
8 #define SQUELCH(X)                              \
9   do {                                          \
10     if (SQ_COUNT < SQ_LIMIT || SQ_VERBOSE) {    \
11       SQ_COUNT++;                               \
12       X                                         \
13     }                                           \
14   } while (0)
15
16 #endif