]>
git.ipfire.org Git - thirdparty/squid.git/blob - compat/debug.h
9 * A debug method for use of external helpers and tools.
10 * It shunts the debug messages down stderr for logging by Squid
11 * or display to the user instead of corrupting the stdout data stream.
23 SQUIDCEXTERN
int debug_enabled
;
25 /* the macro overload style is really a gcc-ism */
30 if (debug_enabled) { \
31 fprintf(stderr, "%s(%d): pid=%ld :", __FILE__, __LINE__, (long)getpid() ); \
37 /* non-GCC compilers can't do the above macro define yet. */
38 void debug(const char *format
,...);
42 #endif /* COMPAT_DEBUG_H */