branches/gmyth-0.1b/src/gmyth_debug.h
author rosfran
Wed Feb 07 18:30:15 2007 +0000 (2007-02-07)
branchtrunk
changeset 331 f32837103d17
permissions -rw-r--r--
[svn r333] Fixed bug on do_get_file_info.
     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