Go to the documentation of this file.
9 #ifndef SQUID_COMPAT_DEBUG_H
10 #define SQUID_COMPAT_DEBUG_H
26 #if defined(__GNUC__) || defined(__SUNPRO_CC)
30 if (debug_enabled) { \
31 fprintf(stderr, "%s(%d): pid=%ld :", __FILE__, __LINE__, static_cast<long>(getpid())); \
36 #define ndebug(content) ndebug_(__FILE__, __LINE__, content)
37 #define ndebug_(file, line, content) if (debug_enabled) { \
38 std::cerr << file << '(' << line << ')' << ": pid=" << getpid() << ':' \
39 << content << std::endl; \
45 void debug(
const char *format,...);
void debug(const char *format,...)