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