gmyth-dbus/src/gmyth_debug.h
author melunko
Fri Mar 14 13:14:54 2008 +0000 (2008-03-14)
branchtrunk
changeset 946 f9e14ee50af6
permissions -rw-r--r--
[svn r955] updated changelog to 0.8.2
     1 /**
     2  * GMyth Library
     3  *
     4  * @file gmyth/gmyth_debug.h
     5  * 
     6  *
     7  * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
     8  * @author Renato Filho <renato.filho@indt.org.br>
     9  *
    10 * 
    11 * This program is free software; you can redistribute it and/or modify
    12 * it under the terms of the GNU Lesser General Public License as published by
    13 * the Free Software Foundation; either version 2 of the License, or
    14 * (at your option) any later version.
    15 *
    16 * This program is distributed in the hope that it will be useful,
    17 	* but WITHOUT ANY WARRANTY; without even the implied warranty of
    18 	* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    19 	* GNU General Public License for more details.
    20 	*
    21 	* You should have received a copy of the GNU Lesser General Public License
    22 	* along with this program; if not, write to the Free Software
    23 	* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    24 	*/
    25 
    26 #ifndef __GMYTH_DEBUG_H__
    27 #define __GMYTH_DEBUG_H__
    28 
    29 #include <stdarg.h>
    30 #include <glib.h>
    31 #include <time.h>
    32 
    33 G_BEGIN_DECLS
    34 #define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
    35 void
    36 gmyth_debug_real(const char *func,
    37                  const char *file, int line, gboolean newline,
    38                  const char *format, ...)
    39 G_GNUC_PRINTF(5, 6);
    40 
    41 G_END_DECLS
    42 #endif