| 1 |
/********************************************************************\ |
|---|
| 2 |
* This program is free software; you can redistribute it and/or * |
|---|
| 3 |
* modify it under the terms of the GNU General Public License as * |
|---|
| 4 |
* published by the Free Software Foundation; either version 2 of * |
|---|
| 5 |
* the License, or (at your option) any later version. * |
|---|
| 6 |
* * |
|---|
| 7 |
* This program is distributed in the hope that it will be useful, * |
|---|
| 8 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of * |
|---|
| 9 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
|---|
| 10 |
* GNU General Public License for more details. * |
|---|
| 11 |
* * |
|---|
| 12 |
* You should have received a copy of the GNU General Public License* |
|---|
| 13 |
* along with this program; if not, contact: * |
|---|
| 14 |
* * |
|---|
| 15 |
* Free Software Foundation Voice: +1-617-542-5942 * |
|---|
| 16 |
* 59 Temple Place - Suite 330 Fax: +1-617-542-2652 * |
|---|
| 17 |
* Boston, MA 02111-1307, USA gnu@gnu.org * |
|---|
| 18 |
* * |
|---|
| 19 |
\********************************************************************/ |
|---|
| 20 |
|
|---|
| 21 |
/* $Id$ */ |
|---|
| 22 |
/** @file debug.h |
|---|
| 23 |
@brief Debug output routines |
|---|
| 24 |
@author Copyright (C) 2004 Philippe April <papril777@yahoo.com> |
|---|
| 25 |
*/ |
|---|
| 26 |
|
|---|
| 27 |
#ifndef _DEBUG_H_ |
|---|
| 28 |
#define _DEBUG_H_ |
|---|
| 29 |
|
|---|
| 30 |
/** @brief Used to output messages. |
|---|
| 31 |
*The messages will include the finlname and line number, and will be sent to syslog if so configured in the config file |
|---|
| 32 |
*/ |
|---|
| 33 |
#define debug(level, format...) _debug(__FILE__, __LINE__, level, format) |
|---|
| 34 |
|
|---|
| 35 |
/** @internal */ |
|---|
| 36 |
void _debug(char *filename, int line, int level, char *format, ...); |
|---|
| 37 |
|
|---|
| 38 |
#endif /* _DEBUG_H_ */ |
|---|