2 * Copyright (C) 2003 Marco Pesenti Gritti
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 #ifndef GNOME_ENABLE_DEBUG
31 #define DISABLE_LOGGING
32 #define DISABLE_PROFILING
35 #ifdef DISABLE_LOGGING
36 #define LOG(msg, args...)
38 #define LOG(msg, args...) \
39 g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
44 #ifdef DISABLE_PROFILING
45 #define START_PROFILER(name)
46 #define STOP_PROFILER(name)
48 #define START_PROFILER(name) \
49 ev_profiler_start (name, __FILE__);
50 #define STOP_PROFILER(name) \
51 ev_profiler_stop (name);
61 void ev_debug_init (void);
63 #ifndef DISABLE_PROFILING
65 void ev_profiler_start (const char *name,
68 void ev_profiler_stop (const char *name);