Remove #include <cassert> from everywhere under include/CGAL/.

CGAL code has to use CGAL assertions instead.
This commit is contained in:
Sylvain Pion 2008-01-20 18:47:19 +00:00
parent f24caaf675
commit b24108f5fd
27 changed files with 9 additions and 55 deletions

View File

@ -33,7 +33,6 @@
*/ */
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert>
#include <CGAL/global_functions_on_circular_arcs_2.h> #include <CGAL/global_functions_on_circular_arcs_2.h>
#include <CGAL/Arr_tags.h> #include <CGAL/Arr_tags.h>

View File

@ -33,7 +33,6 @@
*/ */
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert>
#include <boost/variant.hpp> #include <boost/variant.hpp>
#include <CGAL/Arr_tags.h> #include <CGAL/Arr_tags.h>

View File

@ -33,8 +33,6 @@
*/ */
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert>
#include <CGAL/tags.h> #include <CGAL/tags.h>
#include <CGAL/Arr_tags.h> #include <CGAL/Arr_tags.h>
#include <CGAL/global_functions_on_circular_arcs_2.h> #include <CGAL/global_functions_on_circular_arcs_2.h>

View File

@ -26,7 +26,6 @@
#define CGAL_CIRCULAR_KERNEL_CIRCULAR_ARC_TRAITS_H #define CGAL_CIRCULAR_KERNEL_CIRCULAR_ARC_TRAITS_H
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert>
#include <CGAL/global_functions_on_circular_arcs_2.h> #include <CGAL/global_functions_on_circular_arcs_2.h>
namespace CGAL { namespace CGAL {

View File

@ -32,7 +32,7 @@
// - It's not specific to circular arcs... // - It's not specific to circular arcs...
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert> #include <CGAL/kernel_assertions.h>
#include <utility> #include <utility>
namespace CGAL { namespace CGAL {

View File

@ -26,7 +26,6 @@
#define CGAL_CIRCULAR_KERNEL_CIRCULAR_ARC_TRAITS_TRACER_H #define CGAL_CIRCULAR_KERNEL_CIRCULAR_ARC_TRAITS_TRACER_H
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert>
#include <CGAL/Profile_counter.h> #include <CGAL/Profile_counter.h>
namespace CGAL { namespace CGAL {

View File

@ -26,7 +26,6 @@
#define CGAL_CIRCULAR_KERNEL_VARIANT_TRAITS_H #define CGAL_CIRCULAR_KERNEL_VARIANT_TRAITS_H
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert>
#include <boost/variant.hpp> #include <boost/variant.hpp>
namespace CGAL { namespace CGAL {

View File

@ -26,12 +26,9 @@
#define CGAL_CIRCULAR_KERNEL_LINE_ARC_TRAITS_H #define CGAL_CIRCULAR_KERNEL_LINE_ARC_TRAITS_H
#include <CGAL/basic.h> #include <CGAL/basic.h>
#include <cassert>
#include <CGAL/global_functions_on_circular_arcs_2.h> #include <CGAL/global_functions_on_circular_arcs_2.h>
#include <CGAL/global_functions_on_line_arcs_2.h> #include <CGAL/global_functions_on_line_arcs_2.h>
namespace CGAL { namespace CGAL {
// Traits class for CGAL::Arrangement_2 (and similar) based on a // Traits class for CGAL::Arrangement_2 (and similar) based on a

View File

@ -26,8 +26,6 @@
#define CGAL_CIRCULAR_KERNEL_CIRCULAR_ARC_POINT_2_H #define CGAL_CIRCULAR_KERNEL_CIRCULAR_ARC_POINT_2_H
#include <iostream> #include <iostream>
#include <cassert>
#include <CGAL/Bbox_2.h> #include <CGAL/Bbox_2.h>
#include <CGAL/Interval_nt.h> #include <CGAL/Interval_nt.h>
#include <boost/type_traits/is_same.hpp> #include <boost/type_traits/is_same.hpp>

View File

@ -25,7 +25,7 @@
#ifndef CGAL_BBOX_FILTERED_PREDICATES_H #ifndef CGAL_BBOX_FILTERED_PREDICATES_H
#define CGAL_BBOX_FILTERED_PREDICATES_H #define CGAL_BBOX_FILTERED_PREDICATES_H
#include <cassert> #include <CGAL/assertions.h>
#include <CGAL/enum.h> #include <CGAL/enum.h>
#include <CGAL/Object.h> #include <CGAL/Object.h>
#include <CGAL/Bbox_2.h> #include <CGAL/Bbox_2.h>

View File

@ -25,8 +25,8 @@
#ifndef CGAL_HEXAGON_FILTERED_PREDICATES_H #ifndef CGAL_HEXAGON_FILTERED_PREDICATES_H
#define CGAL_HEXAGON_FILTERED_PREDICATES_H #define CGAL_HEXAGON_FILTERED_PREDICATES_H
#include <cassert>
#include <fstream> #include <fstream>
#include <CGAL/assertions.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/enum.h> #include <CGAL/enum.h>
#include <CGAL/Object.h> #include <CGAL/Object.h>

View File

@ -30,7 +30,6 @@
#define CGAL_SPHERICAL_KERNEL_CIRCULAR_ARC_POINT_3_H #define CGAL_SPHERICAL_KERNEL_CIRCULAR_ARC_POINT_3_H
#include <iostream> #include <iostream>
#include <cassert>
//#include <CGAL/global_functions_on_roots_and_polynomials_2_2.h> //#include <CGAL/global_functions_on_roots_and_polynomials_2_2.h>
// fixme, devrait // fixme, devrait

View File

@ -31,7 +31,6 @@
#define CGAL_SPHERICAL_KERNEL_CIRCULAR_ARC_POINT_ON_REFERENCE_SPHERE_3_H #define CGAL_SPHERICAL_KERNEL_CIRCULAR_ARC_POINT_ON_REFERENCE_SPHERE_3_H
#include <iostream> #include <iostream>
#include <cassert>
#include <CGAL/Circular_arc_point_3.h> #include <CGAL/Circular_arc_point_3.h>
#include <CGAL/Circular_kernel_3/constant.h> #include <CGAL/Circular_kernel_3/constant.h>

View File

@ -25,7 +25,6 @@
#define CGAL_ENVELOPE_USE_BFS_FACE_ORDER #define CGAL_ENVELOPE_USE_BFS_FACE_ORDER
#include <iostream> #include <iostream>
#include <cassert>
#include <list> #include <list>
#include <set> #include <set>
#include <vector> #include <vector>

View File

@ -29,15 +29,9 @@
#include <CGAL/Point_2.h> #include <CGAL/Point_2.h>
#include <CGAL/kernel_assertions.h> #include <CGAL/kernel_assertions.h>
#include <CGAL/number_utils.h> #include <CGAL/number_utils.h>
#include <cassert>
#include <CGAL/predicates_on_points_2.h> #include <CGAL/predicates_on_points_2.h>
#include <CGAL/Line_2.h> #include <CGAL/Line_2.h>
#include <CGAL/Line_2_Line_2_intersection.h> #include <CGAL/Line_2_Line_2_intersection.h>
#include <CGAL/Object.h> #include <CGAL/Object.h>
CGAL_BEGIN_NAMESPACE CGAL_BEGIN_NAMESPACE

View File

@ -25,8 +25,6 @@
#include <CGAL/NT_converter.h> #include <CGAL/NT_converter.h>
#include <CGAL/Polynomial/internal/Sign_variations_counter.h> #include <CGAL/Polynomial/internal/Sign_variations_counter.h>
//#include <cassert>
CGAL_POLYNOMIAL_BEGIN_INTERNAL_NAMESPACE CGAL_POLYNOMIAL_BEGIN_INTERNAL_NAMESPACE
#define CGAL_POLYNOMIAL_NORMALIZE_GCD_IF_CONSTANT #define CGAL_POLYNOMIAL_NORMALIZE_GCD_IF_CONSTANT

View File

@ -22,7 +22,6 @@
#define CGAL_MINIBALL_MINIBALL #define CGAL_MINIBALL_MINIBALL
#include <CGAL/Min_sphere_of_spheres_d/Min_sphere_of_spheres_d_configure.h> #include <CGAL/Min_sphere_of_spheres_d/Min_sphere_of_spheres_d_configure.h>
#include <cassert>
#include <cstdlib> // for std::rand() #include <cstdlib> // for std::rand()
#include <cmath> #include <cmath>
#include <vector> #include <vector>

View File

@ -24,14 +24,11 @@
#ifndef CGAL_SIMPLEST_RATIONAL_IN_INTERVAL_H #ifndef CGAL_SIMPLEST_RATIONAL_IN_INTERVAL_H
#define CGAL_SIMPLEST_RATIONAL_IN_INTERVAL_H #define CGAL_SIMPLEST_RATIONAL_IN_INTERVAL_H
#include <CGAL/number_type_basic.h> #include <CGAL/number_type_basic.h>
#include <CGAL/to_rational.h> #include <CGAL/to_rational.h>
#include <cassert>
#include <climits> #include <climits>
#include <cmath> #include <cmath>
CGAL_BEGIN_NAMESPACE CGAL_BEGIN_NAMESPACE
/* simplest_rational_in_interval(x,y) returns the rational number with /* simplest_rational_in_interval(x,y) returns the rational number with

View File

@ -38,11 +38,11 @@
#define __OPENNL_BICGSTAB__ #define __OPENNL_BICGSTAB__
#include <CGAL/OpenNL/blas.h> #include <CGAL/OpenNL/blas.h>
#include <CGAL/assertions.h>
#include <cmath> #include <cmath>
#include <cfloat> #include <cfloat>
#include <climits> #include <climits>
#include <cassert>
namespace OpenNL { namespace OpenNL {

View File

@ -38,11 +38,11 @@
#define __OPENNL_CONJUGATE_GRADIENT__ #define __OPENNL_CONJUGATE_GRADIENT__
#include <CGAL/OpenNL/blas.h> #include <CGAL/OpenNL/blas.h>
#include <CGAL/assertions.h>
#include <cmath> #include <cmath>
#include <cfloat> #include <cfloat>
#include <climits> #include <climits>
#include <cassert>
namespace OpenNL { namespace OpenNL {

View File

@ -37,9 +37,9 @@
#define __OPENNL_FULL_VECTOR__ #define __OPENNL_FULL_VECTOR__
#include <CGAL/OpenNL/blas.h> #include <CGAL/OpenNL/blas.h>
#include <CGAL/assertions.h>
#include <cstdlib> #include <cstdlib>
#include <cassert>
namespace OpenNL { namespace OpenNL {

View File

@ -38,7 +38,7 @@
#include <CGAL/OpenNL/sparse_matrix.h> #include <CGAL/OpenNL/sparse_matrix.h>
#include <CGAL/OpenNL/full_vector.h> #include <CGAL/OpenNL/full_vector.h>
#include <cassert> #include <CGAL/assertions.h>
namespace OpenNL { namespace OpenNL {

View File

@ -35,10 +35,10 @@
#define __OPENNL_SPARSE_MATRIX__ #define __OPENNL_SPARSE_MATRIX__
#include <CGAL/OpenNL/full_vector.h> #include <CGAL/OpenNL/full_vector.h>
#include <CGAL/assertions.h>
#include <vector> #include <vector>
#include <cstdlib> #include <cstdlib>
#include <cassert>
namespace OpenNL { namespace OpenNL {

View File

@ -23,7 +23,7 @@
#include <map> #include <map>
#include <iostream> #include <iostream>
#include <CGAL/circulator.h> #include <CGAL/circulator.h>
#include <cassert> #include <CGAL/assertions.h>
#include <sstream> #include <sstream>

View File

@ -27,19 +27,9 @@
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include <cassert>
CGAL_BEGIN_NAMESPACE CGAL_BEGIN_NAMESPACE
// not_implemented function
// ------------------------
void
not_implemented()
{
assert( false);
}
namespace { namespace {
// behaviour variables // behaviour variables

View File

@ -32,8 +32,6 @@
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include <cassert>
CGAL_BEGIN_NAMESPACE CGAL_BEGIN_NAMESPACE

View File

@ -109,13 +109,6 @@
#define DEBUGPRINT(doit,msg,var) #define DEBUGPRINT(doit,msg,var)
#define DEBUGMSG(doit,msg) #define DEBUGMSG(doit,msg)
#define INFOMSG(doit,msg) #define INFOMSG(doit,msg)
// #define NDEBUG // discard assertions. Changed since it violates std: L.K.
#endif #endif
#include <cassert>
#endif //#WIDTH_DEBUG_H #endif //#WIDTH_DEBUG_H