// Copyright (c) 1997-2000 Max-Planck-Institute Saarbruecken (Germany). // All rights reserved. // // This file is part of CGAL (www.cgal.org); you may redistribute it under // the terms of the Q Public License version 1.0. // See the file LICENSE.QPL 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. // // $Source: /CVSROOT/CGAL/Packages/Nef_2/include/CGAL/Nef_2/debug.h,v $ // $Revision: 1.11.2.1 $ $Date: 2004/12/08 20:04:52 $ // $Name: $ // // Author(s) : Michael Seel #ifndef CGAL_DEBUG_H #define CGAL_DEBUG_H #include #ifdef NDEBUG #undef CGAL_NEF_DEBUG #define CGAL_NEF_DEBUG 0 #endif #if CGAL_NEF_DEBUG>0 static int debugthread=1; #endif #undef CGAL_NEF_TRACE #undef CGAL_NEF_TRACEN #undef CGAL_NEF_TRACEV #undef CGAL_NEF_CTRACE #undef CGAL_NEF_CTRACEN #undef ASSERT #undef CGAL_NEF_SETDTHREAD #if CGAL_NEF_DEBUG>0 #define CGAL_NEF_SETDTHREAD(l) debugthread=l #else #define CGAL_NEF_SETDTHREAD(l) #endif #if CGAL_NEF_DEBUG>0 #define CGAL_NEF_TRACE(t) if((debugthread%CGAL_NEF_DEBUG)==0) \ std::cerr<<" "<0 #define CGAL_NEF_TRACEV(t) if((debugthread%CGAL_NEF_DEBUG)==0) \ std::cerr<<" "<<#t<<" = "<<(t)<0 #define CGAL_NEF_TRACEN(t) if((debugthread%CGAL_NEF_DEBUG)==0) \ std::cerr<<" "<0 #define CGAL_NEF_CTRACE(b,t) if(b) std::cerr<<" "<0 #define CGAL_NEF_CTRACEN(b,t) if(b) std::cerr<<" "<