dune-common 3.0-git
Macros
boundschecking.hh File Reference
#include <dune/common/exceptions.hh>

Go to the source code of this file.

Macros

#define DUNE_ASSERT_BOUNDS(cond)
 

Macro Definition Documentation

◆ DUNE_ASSERT_BOUNDS

#define DUNE_ASSERT_BOUNDS (   cond)

If DUNE_CHECK_BOUNDS is defined: check if a condition holds; otherwise, do nothing. Meant to be used for conditions that assure writes and reads do not occur outside of memory limits or pre-defined patterns and related conditions.