Skip to content
Snippets Groups Projects
Commit ab890bc2 authored by Robert K's avatar Robert K
Browse files

merge from master.

parent 4b3dc858
No related branches found
No related tags found
No related merge requests found
......@@ -2,28 +2,22 @@
#define ALUGRID_ASSERT_HH
#include <cassert>
#include "duneassert.hh"
#define ALUGRIDDEBUG
#define alugrid_assert(EX) assert((EX))
#if 0
// this is only of interest when NDEBUG is not set
// NOTE: defining NO_ALUGRID_DEBUG will disable all ALUGrid asserts
#ifndef NDEBUG
// enable ALUGrid debug mode by default unless NO_ALUGRID_DEBUG is set
#if defined(NO_ALUGRID_DEBUG) && defined(ALUGRIDDEBUG)
#undef ALUGRIDDEBUG
#ifndef NO_ALUGRID_DEBUG
#define ALUGRIDDEBUG
#endif
#endif // NDEBUG
#ifndef ALUGRIDDEBUG
# define alugrid_assert(EX) (static_cast<void>(0)) // ((void)sizeof(EX))
# define alugrid_assert(EX) (static_cast<void>(0))
#else
# define alugrid_assert(EX) dune_assert(EX)
#endif
# define alugrid_assert(EX) assert(EX)
#endif
#endif // ALUGRID_ASSERT_HH
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment