gmyth/src/gmyth_debug.h
author rosfran
Mon Mar 19 22:00:25 2007 +0000 (2007-03-19)
branchtrunk
changeset 416 f176c8207077
parent 313 f8d246310650
child 698 9019388af980
permissions -rw-r--r--
[svn r421] Added libosso library dependencies.
     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  * 
    12  * This program is free software; you can redistribute it and/or modify
    13  * it under the terms of the GNU Lesser General Public License as published by
    14  * the Free Software Foundation; either version 2 of the License, or
    15  * (at your option) any later version.
    16  *
    17  * This program is distributed in the hope that it will be useful,
    18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    20  * GNU General Public License for more details.
    21  *
    22  * You should have received a copy of the GNU Lesser General Public License
    23  * along with this program; if not, write to the Free Software
    24  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    25  */
    26 
    27 #ifndef __GMYTH_DEBUG_H__
    28 #define __GMYTH_DEBUG_H__
    29 
    30 #include <stdarg.h>
    31 #include <glib.h>
    32 #include <time.h>
    33 
    34 G_BEGIN_DECLS
    35 
    36 #ifdef GMYTH_USE_DEBUG
    37 #define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
    38 #else
    39 #define gmyth_debug(...)
    40 #endif
    41 
    42 void gmyth_debug_real (const char *func,
    43                        const char *file,
    44                        int line,
    45                        gboolean newline,
    46                        const char *format, ...) G_GNUC_PRINTF (5, 6);
    47 
    48 G_END_DECLS
    49 #endif