⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assertions.h

📁 很多二维 三维几何计算算法 C++ 类库
💻 H
📖 第 1 页 / 共 2 页
字号:
// Copyright (c) 1997-2001  Utrecht University (The Netherlands),// ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany),// INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg// (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria),// and Tel-Aviv University (Israel).  All rights reserved.//// This file is part of CGAL (www.cgal.org); you can redistribute it and/or// modify it under the terms of the GNU Lesser General Public License as// published by the Free Software Foundation; version 2.1 of the License.// See the file LICENSE.LGPL distributed with CGAL.//// Licensees holding a valid commercial license may use this file in// accordance with the commercial license agreement provided with the software.//// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.//// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Optimisation_basic/include/CGAL/Optimisation/assertions.h $// $Id: assertions.h 28567 2006-02-16 14:30:13Z lsaboret $// //// Author(s)     : Geert-Jan Giezeman, Sven Schoenherr <sven@inf.ethz.ch>#ifndef CGAL_OPTIMISATION_ASSERTIONS_H#define CGAL_OPTIMISATION_ASSERTIONS_H// macro definitions// =================// assertions// ----------#if (    defined( CGAL_OPTIMISATION_NO_ASSERTIONS) \      || defined( CGAL_NO_ASSERTIONS) || defined( NDEBUG))#  define  CGAL_optimisation_assertion(EX)         ((void)0)#  define  CGAL_optimisation_assertion_msg(EX,MSG) ((void)0)#  define  CGAL_optimisation_assertion_code(CODE)#  undef   CGAL_OPTIMISATION_ASSERTION_TAG#else#  define  CGAL_optimisation_assertion(EX) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,0))#  define  CGAL_optimisation_assertion_msg(EX,MSG) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,MSG))#  define  CGAL_optimisation_assertion_code(CODE) CODE#  define  CGAL_OPTIMISATION_ASSERTION_TAG 1#endif // optimisation assertions#if (    ! (    defined( CGAL_OPTIMISATION_CHECK_EXACTNESS) \             || defined( CGAL_CHECK_EXACTNESS)              ) \      || defined( CGAL_OPTIMISATION_NO_ASSERTIONS) \      || defined( CGAL_NO_ASSERTIONS) || defined( NDEBUG))#  define  CGAL_optimisation_exactness_assertion(EX)         ((void)0)#  define  CGAL_optimisation_exactness_assertion_msg(EX,MSG) ((void)0)#  define  CGAL_optimisation_exactness_assertion_code(CODE)#  undef   CGAL_OPTIMISATION_EXACTNESS_ASSERTION_TAG#else#  define  CGAL_optimisation_exactness_assertion(EX) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,0))#  define  CGAL_optimisation_exactness_assertion_msg(EX,MSG) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,MSG))#  define  CGAL_optimisation_exactness_assertion_code(CODE) CODE#  define  CGAL_OPTIMISATION_EXACTNESS_ASSERTION_TAG 1#endif // optimisation exactness assertions#if (    ! (    defined( CGAL_OPTIMISATION_CHECK_EXPENSIVE) \             || defined( CGAL_CHECK_EXPENSIVE)              ) \      || defined( CGAL_OPTIMISATION_NO_ASSERTIONS) \      || defined( CGAL_NO_ASSERTIONS) || defined( NDEBUG))#  define  CGAL_optimisation_expensive_assertion(EX)         ((void)0)#  define  CGAL_optimisation_expensive_assertion_msg(EX,MSG) ((void)0)#  define  CGAL_optimisation_expensive_assertion_code(CODE)#  undef   CGAL_OPTIMISATION_EXPENSIVE_ASSERTION_TAG#else#  define  CGAL_optimisation_expensive_assertion(EX) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,0))#  define  CGAL_optimisation_expensive_assertion_msg(EX,MSG) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,MSG))#  define  CGAL_optimisation_expensive_assertion_code(CODE) CODE#  define  CGAL_OPTIMISATION_EXPENSIVE_ASSERTION_TAG 1#endif // optimisation expensive assertions#if (    ! (    defined( CGAL_OPTIMISATION_CHECK_EXACTNESS) \             || defined( CGAL_OPTIMISATION_CHECK_EXPENSIVE) \             || defined( CGAL_CHECK_EXACTNESS)              \             || defined( CGAL_CHECK_EXPENSIVE)              ) \      || defined( CGAL_OPTIMISATION_NO_ASSERTIONS) \      || defined( CGAL_NO_ASSERTIONS) || defined( NDEBUG))#  define  CGAL_optimisation_expensive_exactness_assertion(EX) \                                                                  ((void)0)#  define  CGAL_optimisation_expensive_exactness_assertion_msg(EX,MSG) \                                                                  ((void)0)#  define  CGAL_optimisation_expensive_exactness_assertion_code(CODE)#  undef   CGAL_OPTIMISATION_EXPENSIVE_EXACTNESS_ASSERTION_TAG#else#  define  CGAL_optimisation_expensive_exactness_assertion(EX) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,0))#  define  CGAL_optimisation_expensive_exactness_assertion_msg(EX,MSG) \     ((EX)?((void)0): ::CGAL::assertion_fail( # EX ,__FILE__,__LINE__,MSG))#  define  CGAL_optimisation_expensive_exactness_assertion_code(CODE) CODE#  define  CGAL_OPTIMISATION_EXPENSIVE_EXACTNESS_ASSERTION_TAG 1#endif // optimisation expensive exactness assertions// preconditions// -------------#if (    defined( CGAL_OPTIMISATION_NO_PRECONDITIONS) \      || defined( CGAL_NO_PRECONDITIONS) || defined( NDEBUG))#  define  CGAL_optimisation_precondition(EX)         ((void)0)#  define  CGAL_optimisation_precondition_msg(EX,MSG) ((void)0)#  define  CGAL_optimisation_precondition_code(CODE)#  undef   CGAL_OPTIMISATION_PRECONDITION_TAG#else#  define  CGAL_optimisation_precondition(EX) \     ((EX)?((void)0): ::CGAL::precondition_fail( # EX ,__FILE__,__LINE__,0))#  define  CGAL_optimisation_precondition_msg(EX,MSG) \     ((EX)?((void)0): ::CGAL::precondition_fail( # EX ,__FILE__,__LINE__,MSG))#  define  CGAL_optimisation_precondition_code(CODE) CODE#  define  CGAL_OPTIMISATION_PRECONDITION_TAG 1#endif // optimisation preconditions#if (    ! (    defined( CGAL_OPTIMISATION_CHECK_EXACTNESS) \             || defined( CGAL_CHECK_EXACTNESS)              ) \      || defined( CGAL_OPTIMISATION_NO_PRECONDITIONS) \      || defined( CGAL_NO_PRECONDITIONS) || defined( NDEBUG))#  define  CGAL_optimisation_exactness_precondition(EX)         ((void)0)#  define  CGAL_optimisation_exactness_precondition_msg(EX,MSG) ((void)0)#  define  CGAL_optimisation_exactness_precondition_code(CODE)#  undef   CGAL_OPTIMISATION_EXACTNESS_PRECONDITION_TAG#else#  define  CGAL_optimisation_exactness_precondition(EX) \     ((EX)?((void)0): ::CGAL::precondition_fail( # EX ,__FILE__,__LINE__,0))#  define  CGAL_optimisation_exactness_precondition_msg(EX,MSG) \     ((EX)?((void)0): ::CGAL::precondition_fail( # EX ,__FILE__,__LINE__,MSG))#  define  CGAL_optimisation_exactness_precondition_code(CODE) CODE#  define  CGAL_OPTIMISATION_EXACTNESS_PRECONDITION_TAG 1#endif // optimisation exactness preconditions#if (    ! (    defined( CGAL_OPTIMISATION_CHECK_EXPENSIVE) \             || defined( CGAL_CHECK_EXPENSIVE)              ) \      || defined( CGAL_OPTIMISATION_NO_PRECONDITIONS) \      || defined( CGAL_NO_PRECONDITIONS) || defined( NDEBUG))#  define  CGAL_optimisation_expensive_precondition(EX)         ((void)0)#  define  CGAL_optimisation_expensive_precondition_msg(EX,MSG) ((void)0)#  define  CGAL_optimisation_expensive_precondition_code(CODE)#  undef   CGAL_OPTIMISATION_EXPENSIVE_PRECONDITION_TAG#else#  define  CGAL_optimisation_expensive_precondition(EX) \     ((EX)?((void)0): ::CGAL::precondition_fail( # EX ,__FILE__,__LINE__,0))#  define  CGAL_optimisation_expensive_precondition_msg(EX,MSG) \     ((EX)?((void)0): ::CGAL::precondition_fail( # EX ,__FILE__,__LINE__,MSG))#  define  CGAL_optimisation_expensive_precondition_code(CODE) CODE#  define  CGAL_OPTIMISATION_EXPENSIVE_PRECONDITION_TAG 1#endif // optimisation expensive preconditions#if (    ! (    defined( CGAL_OPTIMISATION_CHECK_EXACTNESS) \             || defined( CGAL_OPTIMISATION_CHECK_EXPENSIVE) \             || defined( CGAL_CHECK_EXACTNESS)              \             || defined( CGAL_CHECK_EXPENSIVE)              ) \      || defined( CGAL_OPTIMISATION_NO_PRECONDITIONS) \      || defined( CGAL_NO_PRECONDITIONS) || defined( NDEBUG))#  define  CGAL_optimisation_expensive_exactness_precondition(EX) \                                                                  ((void)0)#  define  CGAL_optimisation_expensive_exactness_precondition_msg(EX,MSG) \                                                                  ((void)0)#  define  CGAL_optimisation_expensive_exactness_precondition_code(CODE)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -