Blame test/mpi/rma/squelch.h

Packit Service c5cf8c
#ifndef SQUELCH_H_INCLUDED
Packit Service c5cf8c
#define SQUELCH_H_INCLUDED
Packit Service c5cf8c
Packit Service c5cf8c
static const int SQ_LIMIT = 10;
Packit Service c5cf8c
static int SQ_COUNT = 0;
Packit Service c5cf8c
static int SQ_VERBOSE = 0;
Packit Service c5cf8c
Packit Service c5cf8c
#define SQUELCH(X)                              \
Packit Service c5cf8c
  do {                                          \
Packit Service c5cf8c
    if (SQ_COUNT < SQ_LIMIT || SQ_VERBOSE) {    \
Packit Service c5cf8c
      SQ_COUNT++;                               \
Packit Service c5cf8c
      X                                         \
Packit Service c5cf8c
    }                                           \
Packit Service c5cf8c
  } while (0)
Packit Service c5cf8c
Packit Service c5cf8c
#endif /* SQUELCH_H_INCLUDED */