mirror of https://github.com/CGAL/cgal
explain why NDEBUG must not be defined
This commit is contained in:
parent
c6a9a1d192
commit
0a6eecd28d
|
|
@ -1,3 +1,12 @@
|
|||
// CGAL::bisect_failures requires the code to be compiled with assertions
|
||||
// enabled. That means NDEBUG and CGAL_NDEBUG should not be defined.
|
||||
#if defined(NDEBUG)
|
||||
# undef NDEBUG
|
||||
#endif
|
||||
#if defined(CGAL_NDEBUG)
|
||||
# undef CGAL_NDEBUG
|
||||
#endif
|
||||
|
||||
#include <CGAL/bisect_failures.h>
|
||||
#include <CGAL/boost/graph/Euler_operations.h>
|
||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||
|
|
|
|||
|
|
@ -72,6 +72,10 @@ namespace CGAL {
|
|||
* 8. Repeats until no further simplification is possible (minimal failing case found)
|
||||
* 9. Saves the minimal failing case as "final_bad" and returns its exit code
|
||||
*
|
||||
* \warning CGAL::bisect_failures requires the tested code to be compiled with
|
||||
* assertions enabled. That means NDEBUG and CGAL_NDEBUG should not be defined.
|
||||
*
|
||||
* Here is an example of how to use `CGAL::bisect_failures`:
|
||||
* \snippet STL_Extension/bisect_failures.cpp bisect_failures_snippet
|
||||
*/
|
||||
template<typename InputData, typename GetSizeFn, typename SimplifyFn, typename RunFn, typename SaveFn>
|
||||
|
|
|
|||
Loading…
Reference in New Issue