mirror of https://github.com/CGAL/cgal
Remove #include <cassert> from everywhere under include/CGAL/.
CGAL code has to use CGAL assertions instead.
This commit is contained in:
parent
f24caaf675
commit
b24108f5fd
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -32,8 +32,6 @@
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
|
|
||||||
#include <cassert>
|
|
||||||
|
|
||||||
CGAL_BEGIN_NAMESPACE
|
CGAL_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue