Commit Graph

25 Commits

Author SHA1 Message Date
Sylvain Pion 85dc12f2a7 Remove empty lines at beginning and end of files
(apply Scripts/developer_scripts/remove_empty_lines.pl).
2010-02-01 12:55:28 +00:00
Stéphane Tayeb 8dceee4164 Add include<CGAL/assertions.h> in *_assertion files. 2009-10-07 13:16:13 +00:00
Stéphane Tayeb 770492c1c7 Use new version of script create_assertions.sh to generate *_assertions.h files.
Diffs are:
 * #undef added
 * in old files, (void)0 is replaced by static_cast<void>(0)
 * in old files, lines as "#  define CGAL_xxx_assertion 1" are added
 * in point_set_processing_assertions.h, surface_mesh_parameterization_assertions.h, surface_reconstruction_points_assertions.h, "|| defined(CGAL_NDEBUG)" is replaced by "|| defined (NDEBUG)"
 * protective macros (if any) are removed
 * included files if any (<CGAL/assertions.h>, <CGAL/trace.h>) are removed
2009-10-07 07:49:44 +00:00
Sylvain Pion 8573fe26ce Rename CGALi to internal. 2009-08-24 17:10:04 +00:00
Sylvain Pion 76f9ad0aa5 Replace various std::copy calls by constructors of vector/list. 2008-08-20 09:52:00 +00:00
Michael Hoffmann 827fc44e29 Remove dependency on CGAL/functional. 2008-07-23 15:31:38 +00:00
Sylvain Pion 79864c0c8e Remove Arity_tag. 2008-07-22 12:29:01 +00:00
Sylvain Pion 2eb0d8f9e9 certainly() -> possibly(). 2008-07-14 11:16:41 +00:00
Sylvain Pion 9d7a609ff2 Make assertions trigger an error only for *certain* conditions (using CGAL::certainly()).
This is useful for interval arithmetic code.
(replay of r44002 with the header order hopefully fixed)
2008-07-10 21:49:17 +00:00
Sylvain Pion 2b4ebf01f7 Undo r44002 as it's buggy 2008-07-06 20:47:29 +00:00
Sylvain Pion 514a17ad4f Improve the interaction of assertions and interval computations.
Things like "CGAL_assertion(denominator != 0)" produced assertion failures for no gain.
So now, the assertion is triggered only if the condition is certain, using CGAL::certainly().
That is, change the following in all assertion files :
  ((EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
to :
  (CGAL::certainly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
2008-07-06 17:05:47 +00:00
Sylvain Pion 0308a5845c Qualify cref() by boost:: as there is a cref() in TR1 as well. 2008-03-11 14:45:12 +00:00
Andreas Fabri ce48e143bd fixed typo 2008-03-11 10:37:32 +00:00
Sylvain Pion 740e5179a6 Replace <CGAL/functional.h> by <boost/bind.hpp>.
If it works, then we can do the same elsewhere,
and schedule <CGAL/functional.h> for removal.
2008-03-10 00:10:50 +00:00
Sylvain Pion 7b114599ad Get rid of CGAL_REP_CLASS_DEFINED 2008-01-03 19:02:00 +00:00
Sylvain Pion d49e006c53 Remove default argument "0" to calls to assertion_fail() et al,
as the default is now the empty string "".
It should fix the problem that we have lost the assertion messages
(seeing "what():  basic_string::_S_construct NULL not valid" instead),
for packages that use package-specific assertion macros.
2007-12-21 21:58:27 +00:00
Sylvain Pion 917bfaffa4 formatting 2007-02-15 14:48:03 +00:00
Ron Wein 1dee919574 Fixed a problem with the include files. 2006-06-04 15:33:38 +00:00
Andreas Fabri 139ccd2db0 undo of a previous svn move 2006-06-02 13:11:51 +00:00
Andreas Fabri 0ea6b431d3 undo of a previous svn move 2006-06-02 13:11:37 +00:00
Ron Wein df2ec0d736 Changed files with *.C prefix to *_impl.h, and moved some non-interface
include files to a the Convex_hull_2 subfolder.
2006-05-29 09:01:56 +00:00
Christophe Delage 23e9fe7522 Fixed a silly bug found by Thomas Hackl, thanks to Camille Wormser. 2006-04-19 13:29:42 +00:00
Laurent Saboret db6a8f948c Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00
Laurent Saboret 1aad55d4cb Change CVS keywords to SVN style 2006-02-14 10:08:15 +00:00
Laurent Saboret 20e0dc0e01 Move packages to trunk root 2006-02-14 08:58:14 +00:00