debug.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
9#include "squid.h"
10#include "compat/debug.h"
11
12/* default off */
14
15#if !defined(__GNUC__) && !defined(__SUNPRO_CC)
16/* under gcc a macro define in compat/debug.h is used instead */
17
18void
19debug(const char *format,...)
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__ || __SUNPRO_CC */
30
int debug_enabled
Definition: debug.cc:13
void debug(const char *format,...)
Definition: debug.cc:19

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors