|
BWAPI
|
00001 // Copyright (c) 2007 Fernando Luis Cacciola Carballal. All rights reserved. 00002 // 00003 // This file is part of CGAL (www.cgal.org); you may redistribute it under 00004 // the terms of the Q Public License version 1.0. 00005 // See the file LICENSE.QPL distributed with CGAL. 00006 // 00007 // Licensees holding a valid commercial license may use this file in 00008 // accordance with the commercial license agreement provided with the software. 00009 // 00010 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00011 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00012 // 00013 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Straight_skeleton_2/include/CGAL/Straight_skeleton_2/assertions.h $ 00014 // $Id: assertions.h 44139 2008-07-14 11:16:41Z spion $ 00015 // 00016 // Author(s) : Fernando Cacciola <fernando_cacciola@ciudad.com.ar> 00017 00018 #ifndef CGAL_STRAIGHT_SKELETON_ASSERTIONS_H 00019 #define CGAL_STRAIGHT_SKELETON_ASSERTIONS_H 00020 00021 #if defined(CGAL_STRAIGHT_SKELETON_NO_POSTCONDITIONS) \ 00022 || defined(CGAL_NO_POSTCONDITIONS) \ 00023 || (!defined(CGAL_STRAIGHT_SKELETON_CHECK_EXPENSIVE) && !defined(CGAL_CHECK_EXPENSIVE)) \ 00024 || defined(NDEBUG) 00025 # define CGAL_stskel_expensive_postcondition(EX) (static_cast<void>(0)) 00026 # define CGAL_stskel_expensive_postcondition_msg(EX,MSG) (static_cast<void>(0)) 00027 # define CGAL_stskel_expensive_postcondition_code(CODE) 00028 #else 00029 # define CGAL_stskel_expensive_postcondition(EX) (CGAL::possibly(EX)?(static_cast<void>(0)): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__)) 00030 # define CGAL_stskel_expensive_postcondition_msg(EX,MSG) (CGAL::possibly(EX)?(static_cast<void>(0)): ::CGAL::postcondition_fail( # EX , __FILE__, __LINE__, MSG)) 00031 # define CGAL_stskel_expensive_postcondition_code(CODE) CODE 00032 #endif 00033 00034 00035 CGAL_BEGIN_NAMESPACE 00036 00037 namespace { 00038 00039 template<class Handle> inline bool handle_assigned ( Handle const& aH ) 00040 { 00041 Handle null ; 00042 return aH != null ; 00043 } 00044 00045 } 00046 00047 CGAL_END_NAMESPACE 00048 00049 #endif // CGAL_STRAIGHT_SKELETON_ASSERTIONS_H // 00050 // EOF // 00051
1.7.6.1