nathan@2
|
1 |
/* debug.h
|
nathan@15
|
2 |
Copyright (c) 2000-2012 Craig Condit, Stefan Huelswitt.
|
nathan@2
|
3 |
|
nathan@2
|
4 |
Redistribution and use in source and binary forms, with or without
|
nathan@2
|
5 |
modification, are permitted provided that the following conditions are met:
|
nathan@2
|
6 |
|
nathan@2
|
7 |
1. Redistributions of source code must retain the above copyright notice,
|
nathan@2
|
8 |
this list of conditions and the following disclaimer.
|
nathan@2
|
9 |
2. Redistributions in binary form must reproduce the above copyright notice,
|
nathan@2
|
10 |
this list of conditions and the following disclaimer in the documentation
|
nathan@2
|
11 |
and/or other materials provided with the distribution.
|
nathan@2
|
12 |
|
nathan@2
|
13 |
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
nathan@2
|
14 |
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
nathan@2
|
15 |
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
nathan@2
|
16 |
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
|
nathan@2
|
17 |
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
nathan@2
|
18 |
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
nathan@2
|
19 |
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
nathan@2
|
20 |
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
nathan@2
|
21 |
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
nathan@2
|
22 |
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
nathan@2
|
23 |
SUCH DAMAGE.
|
nathan@2
|
24 |
*/
|
nathan@2
|
25 |
|
nathan@2
|
26 |
#ifndef _CDBACKUP_DEBUG_H
|
nathan@2
|
27 |
#define _CDBACKUP_DEBUG_H
|
nathan@2
|
28 |
|
nathan@2
|
29 |
extern int debug;
|
nathan@2
|
30 |
|
nathan@2
|
31 |
#define DEBUG(format,args...) { if(debug) fprintf(stderr,format, ## args); }
|
nathan@2
|
32 |
|
nathan@2
|
33 |
#endif
|