dune-alugrid 2.8.0
Loading...
Searching...
No Matches
alugrid_assert.hh
Go to the documentation of this file.
1#ifndef ALUGRID_ASSERT_HH
2#define ALUGRID_ASSERT_HH
3
4#include <cassert>
5
6// this is only of interest when NDEBUG is not set
7// NOTE: defining NO_ALUGRID_DEBUG will disable all ALUGrid asserts
8#ifndef NDEBUG
9
10// enable ALUGrid debug mode by default unless NO_ALUGRID_DEBUG is set
11#ifndef NO_ALUGRID_DEBUG
12#define ALUGRIDDEBUG
13#endif
14
15#endif // NDEBUG
16
17#ifndef ALUGRIDDEBUG
18# define alugrid_assert(EX) (static_cast<void>(0))
19#else
20# define alugrid_assert(EX) assert(EX)
21#endif
22
23#endif // ALUGRID_ASSERT_HH