root/trunk/src/debug.h
| Revision 680, 1.1 kB (checked in by jajcus, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | /* $Id: debug.h,v 1.4 2003/01/15 07:27:27 jajcus Exp $ */ |
| 2 | |
| 3 | /* |
| 4 | * (C) Copyright 2002-2006 Jacek Konieczny [jajcus(a)jajcus,net] |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License Version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
| 17 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 | */ |
| 19 | |
| 20 | #ifndef debug_h |
| 21 | #define debug_h |
| 22 | |
| 23 | #ifdef DEBUG |
| 24 | # if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L |
| 25 | # define debug(...) g_log (G_LOG_DOMAIN, \ |
| 26 | G_LOG_LEVEL_DEBUG, \ |
| 27 | __VA_ARGS__) |
| 28 | # elif defined (__GNUC__) |
| 29 | # define debug(format...) g_log (G_LOG_DOMAIN, \ |
| 30 | G_LOG_LEVEL_DEBUG, \ |
| 31 | format) |
| 32 | # endif |
| 33 | #else |
| 34 | # define debug |
| 35 | #endif |
| 36 | |
| 37 | #endif |
Note: See TracBrowser for help on using the browser.
