Actual source code: petscvalgrind.h

  1: /*
  2:   This is the include file for source code that needs to know if the code is being run under valgrind
  3: */
  4: #if !defined(PETSCVALGRIND_H)
  5: #define PETSCVALGRIND_H

  7: #if defined(PETSC_HAVE_VALGRIND)
  8: #  include <valgrind/valgrind.h>
  9: #  define PETSC_RUNNING_ON_VALGRIND RUNNING_ON_VALGRIND
 10: #else
 11: #  define PETSC_RUNNING_ON_VALGRIND PETSC_FALSE
 12: #endif

 14: #endif