]>
Commit | Line | Data |
---|---|---|
37be9888 AJ |
1 | /* |
2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors | |
3 | * | |
4 | * Squid software is distributed under GPLv2+ license and includes | |
5 | * contributions from numerous individuals and organizations. | |
6 | * Please see the COPYING and CONTRIBUTORS files for details. | |
7 | */ | |
8 | ||
f7f3304a | 9 | #include "squid.h" |
2a9c817f | 10 | #include "compat/debug.h" |
c19c2c0b AJ |
11 | |
12 | /* default off */ | |
13 | int debug_enabled = 0; | |
2a9c817f FC |
14 | |
15 | #ifndef __GNUC__ | |
16 | /* under gcc a macro define in compat/debug.h is used instead */ | |
17 | ||
18 | void | |
21737d17 | 19 | debug(const char *format,...) |
2a9c817f FC |
20 | { |
21 | if (!debug_enabled) | |
22 | return; | |
23 | va_list args; | |
24 | va_start (args,format); | |
25 | vfprintf(stderr,format,args); | |
26 | va_end(args); | |
27 | } | |
28 | ||
29 | #endif /* __GNUC__ */ |