nathan@2: /* debug.h nathan@2: Copyright (c) 2000-2002 Craig Condit, Stefan Hülswitt. nathan@2: nathan@2: Redistribution and use in source and binary forms, with or without nathan@2: modification, are permitted provided that the following conditions are met: nathan@2: nathan@2: 1. Redistributions of source code must retain the above copyright notice, nathan@2: this list of conditions and the following disclaimer. nathan@2: 2. Redistributions in binary form must reproduce the above copyright notice, nathan@2: this list of conditions and the following disclaimer in the documentation nathan@2: and/or other materials provided with the distribution. nathan@2: nathan@2: THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS nathan@2: OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED nathan@2: WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE nathan@2: DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR nathan@2: ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL nathan@2: DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR nathan@2: SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER nathan@2: CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT nathan@2: LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY nathan@2: OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF nathan@2: SUCH DAMAGE. nathan@2: */ nathan@2: nathan@2: #ifndef _CDBACKUP_DEBUG_H nathan@2: #define _CDBACKUP_DEBUG_H nathan@2: nathan@2: extern int debug; nathan@2: nathan@2: #define DEBUG(format,args...) { if(debug) fprintf(stderr,format, ## args); } nathan@2: nathan@2: #endif