branches/gmyth-0.1b/src/gmyth_debug.h
branchtrunk
changeset 326 81b1f3006eb2
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/branches/gmyth-0.1b/src/gmyth_debug.h	Tue Feb 06 00:33:35 2007 +0000
     1.3 @@ -0,0 +1,49 @@
     1.4 +/**
     1.5 + * GMyth Library
     1.6 + *
     1.7 + * @file gmyth/gmyth_debug.h
     1.8 + * 
     1.9 + *
    1.10 + * Copyright (C) 2006 INdT - Instituto Nokia de Tecnologia.
    1.11 + * @author Renato Filho <renato.filho@indt.org.br>
    1.12 + *
    1.13 + *//*
    1.14 + * 
    1.15 + * This program is free software; you can redistribute it and/or modify
    1.16 + * it under the terms of the GNU Lesser General Public License as published by
    1.17 + * the Free Software Foundation; either version 2 of the License, or
    1.18 + * (at your option) any later version.
    1.19 + *
    1.20 + * This program is distributed in the hope that it will be useful,
    1.21 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.22 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1.23 + * GNU General Public License for more details.
    1.24 + *
    1.25 + * You should have received a copy of the GNU Lesser General Public License
    1.26 + * along with this program; if not, write to the Free Software
    1.27 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.28 + */
    1.29 +
    1.30 +#ifndef __GMYTH_DEBUG_H__
    1.31 +#define __GMYTH_DEBUG_H__
    1.32 +
    1.33 +#include <stdarg.h>
    1.34 +#include <glib.h>
    1.35 +#include <time.h>
    1.36 +
    1.37 +G_BEGIN_DECLS
    1.38 +
    1.39 +#ifdef GMYTH_USE_DEBUG
    1.40 +#define gmyth_debug(...) gmyth_debug_real (__FUNCTION__, __FILE__, __LINE__, TRUE, __VA_ARGS__)
    1.41 +#else
    1.42 +#define gmyth_debug(...)
    1.43 +#endif
    1.44 +
    1.45 +void gmyth_debug_real (const char *func,
    1.46 +                       const char *file,
    1.47 +                       int line,
    1.48 +                       gboolean newline,
    1.49 +                       const char *format, ...) G_GNUC_PRINTF (5, 6);
    1.50 +
    1.51 +G_END_DECLS
    1.52 +#endif