Deleted Added
full compact
ntp_debug.h (182007) ntp_debug.h (200576)
1/*
2 * $Header$
3 *
4 * $Created: Sat Aug 20 14:23:01 2005 $
5 *
6 * Copyright (C) 2005 by Frank Kardel
7 */
8#ifndef NTP_DEBUG_H
9#define NTP_DEBUG_H
10
11/*
12 * macros for debugging output - cut down on #ifdef pollution in the code
13 */
14
15#ifdef DEBUG
1/*
2 * $Header$
3 *
4 * $Created: Sat Aug 20 14:23:01 2005 $
5 *
6 * Copyright (C) 2005 by Frank Kardel
7 */
8#ifndef NTP_DEBUG_H
9#define NTP_DEBUG_H
10
11/*
12 * macros for debugging output - cut down on #ifdef pollution in the code
13 */
14
15#ifdef DEBUG
16#define DPRINTF(_lvl_, _arg_) \
17 if (debug >= (_lvl_)) \
18 printf _arg_;
16#define DPRINTF(_lvl_, _arg_) \
17 do { \
18 if (debug >= (_lvl_)) \
19 printf _arg_; \
20 } while (0)
19#else
21#else
20#define DPRINTF(_lvl_, _arg_)
22#define DPRINTF(_lvl_, _arg_) do {} while (0)
21#endif
22
23#endif
24/*
25 * $Log$
26 */
23#endif
24
25#endif
26/*
27 * $Log$
28 */