add assert_msg equivalent to CGAL_assertion_msg even if CGAL_NDEBUG is defined

This commit is contained in:
Sébastien Loriot 2013-03-22 09:38:37 +01:00
parent 14294b719d
commit 2ea287d62e
1 changed files with 9 additions and 0 deletions

View File

@ -21,6 +21,15 @@
#ifndef ENVELOPE_TEST_OVERLAY_FUNCTOR_H
#define ENVELOPE_TEST_OVERLAY_FUNCTOR_H
#ifndef assert_msg
#ifndef NDEBUG
# define assert_msg(EX,MSG) \
(CGAL::possibly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__, MSG))
#else
# define assert_msg(EX,MSG) (static_cast<void>(0))
#endif
#endif
#include <iostream>
namespace CGAL {