mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
017fc4eb4b
New file headers. svn path=/import/netsurf/; revision=190
28 lines
587 B
C
28 lines
587 B
C
/*
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
* Licensed under the GNU General Public License,
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
|
|
#ifndef _NETSURF_LOG_H_
|
|
#define _NETSURF_LOG_H_
|
|
|
|
#ifdef NDEBUG
|
|
|
|
#define LOG(x) ((void) 0)
|
|
|
|
#else
|
|
|
|
#ifdef __GNUC__
|
|
#define LOG(x) (printf(__FILE__ " %s %i: ", __PRETTY_FUNCTION__, __LINE__), printf x, printf("\n"))
|
|
#else
|
|
#define LOG(x) (printf(__FILE__ " %i: ", __LINE__), printf x, printf("\n"))
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|