26#if defined(__GNUC__) || defined(__SUNPRO_CC)
29 if (debug_enabled) { \
30 fprintf(stderr, "%s(%d): pid=%ld :", __FILE__, __LINE__, static_cast<long>(getpid())); \
34#define ndebug(content) ndebug_(__FILE__, __LINE__, content)
35#define ndebug_(file, line, content) if (debug_enabled) { \
36 std::cerr << file << '(' << line << ')' << ": pid=" << getpid() << ':' \
37 << content << std::endl; \
43void debug(
const char *format,...);
void debug(const char *format,...)
SQUIDCEXTERN int debug_enabled