00001 /****************************************************************************/ 00002 /* */ 00003 /* This file is part of QSopt_ex. */ 00004 /* */ 00005 /* (c) Copyright 2006 by David Applegate, William Cook, Sanjeeb Dash, */ 00006 /* and Daniel Espinoza */ 00007 /* */ 00008 /* Sanjeeb Dash ownership of copyright in QSopt_ex is derived from his */ 00009 /* copyright in QSopt. */ 00010 /* */ 00011 /* This code may be used under the terms of the GNU General Public License */ 00012 /* (Version 2.1 or later) as published by the Free Software Foundation. */ 00013 /* */ 00014 /* Alternatively, use is granted for research purposes only. */ 00015 /* */ 00016 /* It is your choice of which of these two licenses you are operating */ 00017 /* under. */ 00018 /* */ 00019 /* We make no guarantees about the correctness or usefulness of this code. */ 00020 /* */ 00021 /****************************************************************************/ 00022 00023 /* RCSINFO $Id: trace.h,v 1.2 2003/11/05 16:47:22 meven Exp $ */ 00024 #ifndef ILL_trace_h 00025 #define ILL_trace_h 00026 00027 #include <stdio.h> 00028 00029 /* users of these macros must declare a static int TRACE variable */ 00030 #ifndef NDEBUG 00031 #define ILL_IFTRACE if (TRACE) printf 00032 #define ILL_IFTRACE2 if (TRACE > 1) printf 00033 #define ILL_IFDOTRACE if (TRACE) 00034 #else 00035 /* the optimizer will take care of this */ 00036 #define ILL_IFTRACE if (0) printf 00037 #define ILL_IFTRACE if (0) printf 00038 #define ILL_IFDOTRACE if (0) 00039 #endif 00040 00041 #endif
1.4.7