1
/* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */
4
* Copyright (C) Nicolas Bruguier 2007-2010 <gandalfn@club-internet.fr>
6
* cairo-compmgr is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
11
* cairo-compmgr is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with cairo-compmgr. If not, write to:
18
* The Free Software Foundation, Inc.,
19
* 51 Franklin Street, Fifth Floor
20
* Boston, MA 02110-1301, USA.
28
//#define CCM_DEBUG_ENABLE
30
void ccm_log_start_audit();
31
void ccm_log_audit (const char *format, ...);
32
void ccm_log (const char *format, ...);
33
void ccm_log_window (CCMWindow * window, const char *format, ...);
34
void ccm_log_atom (CCMDisplay * display, Atom atom, const char *format, ...);
35
void ccm_log_region (CCMDrawable * drawable, const char *format, ...);
36
void ccm_log_print_backtrace ();
38
#ifdef CCM_DEBUG_ENABLE
40
#define ccm_debug(...) ccm_log(__VA_ARGS__)
41
#define ccm_debug_window(window, format...) ccm_log_window(window, format)
42
#define ccm_debug_atom(display, atom, format...) ccm_log_atom(display, atom, format)
43
#define ccm_debug_region(drawable, format...) ccm_log_region(drawable, format)
44
#define ccm_debug_backtrace() ccm_log_print_backtrace()
48
#define ccm_debug(...)
49
#define ccm_debug_window(window, format...)
50
#define ccm_debug_atom(display, atom, format...)
51
#define ccm_debug_region(drawable, format...)
52
#define ccm_debug_backtrace()
56
#endif /* _CCM_DEBUG_H_ */