From 3ddc0683f9d27d5ed4cb6a7ae47ca7c7f60c99e6 Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Wed, 16 Aug 2006 11:46:56 +0000 Subject: [PATCH] CGAL_NDEBUG documentation --- Manual/doc_tex/Introduction_ref/checks.tex | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Manual/doc_tex/Introduction_ref/checks.tex b/Manual/doc_tex/Introduction_ref/checks.tex index 9361560740b..db4957c650e 100644 --- a/Manual/doc_tex/Introduction_ref/checks.tex +++ b/Manual/doc_tex/Introduction_ref/checks.tex @@ -52,15 +52,18 @@ whole \cgal\ library: \begin{itemize} \item \ccStyle{CGAL_NO_PRECONDITIONS}, \item \ccStyle{CGAL_NO_POSTCONDITIONS}, - \item \ccStyle{CGAL_NO_ASSERTIONS} and - \item \ccStyle{CGAL_NO_WARNINGS}. + \item \ccStyle{CGAL_NO_ASSERTIONS}, + \item \ccStyle{CGAL_NO_WARNINGS} and + \item \ccStyle{CGAL_NDEBUG}. \end{itemize} Moreover, the standard macro \ccStyle{NDEBUG}, which controls the behavior of -the \ccc{std::assert} function, also affects all checks in \cgal. This way, +the standard \ccc{assert} macro, also affects all checks in \cgal. This way, adding \ccStyle{-DNDEBUG} to your compilation flags removes absolutely all -checks, including standard ones using \ccc{std::assert}. This is the default -recommended setup for performing timing benchmarks for example. +checks, including standard ones using \ccc{assert}. This is the default +recommended setup for performing timing benchmarks for example. In addition, +the macro \ccStyle{CGAL_NDEBUG} also disables all checks in \cgal\ but does +not affect the standard \ccc{assert} macro. Not all checks are on by default. All four types of checks can be marked as expensive or exactness checks