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