]> git.0d.be Git - empathy.git/blob - libempathy/gossip-debug.h
[darcs-to-svn @ Sync last things from gossip. Up to date with gossip SVN revision...
[empathy.git] / libempathy / gossip-debug.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2006 Imendio AB
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
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 GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GOSSIP_DEBUG_H__
22 #define __GOSSIP_DEBUG_H__
23
24 #include <glib.h>
25
26 G_BEGIN_DECLS
27
28 #ifdef G_HAVE_ISO_VARARGS
29 #  ifdef GOSSIP_DISABLE_DEBUG
30 #    define gossip_debug(...)
31 #  else
32 #    define gossip_debug(...) gossip_debug_impl (__VA_ARGS__)
33 #  endif
34 #elif defined(G_HAVE_GNUC_VARARGS)
35 #  if GOSSIP_DISABLE_DEBUG
36 #    define gossip_debug(fmt...)
37 #  else
38 #    define gossip_debug(fmt...) gossip_debug_impl(fmt)
39 #  endif
40 #else
41 #  if GOSSIP_DISABLE_DEBUG
42 #    define gossip_debug(x)
43 #  else
44 #    define gossip_debug gossip_debug_impl
45 #  endif
46 #endif
47
48 void gossip_debug_impl (const gchar *domain, const gchar *msg, ...);
49
50 G_END_DECLS
51
52 #endif /* __GOSSIP_DEBUG_H__ */
53