Skip to content
Snippets Groups Projects
Commit c9f627ee authored by Elias Pipping's avatar Elias Pipping
Browse files

Add documentation

parent 09fd741d
No related branches found
No related tags found
1 merge request!17[FS#1030] Add, use, and test DUNE_ASSERT_BOUNDS
......@@ -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
......
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