diff --git a/dune/common/boundschecking.hh b/dune/common/boundschecking.hh index 9d751786ea6f07553dc18ce7e4e738a70bc3d637..8a9e692367d9331e209f83786ba34966d6acecdd 100644 --- a/dune/common/boundschecking.hh +++ b/dune/common/boundschecking.hh @@ -11,6 +11,12 @@ DUNE_THROW(Dune::RangeError, "Index out of bounds."); \ } while (false) #else +/** + 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. +*/ #define DUNE_ASSERT_BOUNDS(cond) #endif #endif