diff -r 000000000000 -r 58d43e2186ba gmyth-dbus/src/gmyth_debug.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gmyth-dbus/src/gmyth_debug.h Thu Feb 28 08:10:55 2008 +0000 @@ -0,0 +1,42 @@ +/** + * GMyth Library + * + * @file gmyth/gmyth_debug.h + * + * + * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia. + * @author Renato Filho + * +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published by +* the Free Software Foundation; either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +#ifndef __GMYTH_DEBUG_H__ +#define __GMYTH_DEBUG_H__ + +#include +#include +#include + +G_BEGIN_DECLS +#define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__) +void +gmyth_debug_real(const char *func, + const char *file, int line, gboolean newline, + const char *format, ...) +G_GNUC_PRINTF(5, 6); + +G_END_DECLS +#endif