summaryrefslogtreecommitdiff
path: root/utils/log.h
blob: cfea5e93d8212142eaf494f3ead77fca5920531e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 * Copyright 2003 James Bursa <bursa@users.sourceforge.net>
 * Copyright 2004 John Tytgat <John.Tytgat@aaug.net>
 *
 * This file is part of NetSurf, http://www.netsurf-browser.org/
 * Licenced under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 */

#include <stdio.h>

#ifndef _LIBNSGIF_LOG_H_
#define _LIBNSGIF_LOG_H_

#ifdef NDEBUG
#  define LOG(x) ((void) 0)
#else
#  ifdef __GNUC__
#    define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
#  elif defined(__CC_NORCROFT)
#    define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
#  else
#    define LOG(x) do { printf x, fputc('\n', stdout)); } while (0)
#  endif
#endif

#endif