File: dprintf.h

package info (click to toggle)
plocate 1.1.23-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: cpp: 5,344; sh: 84; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 245 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef _DPRINTF_H
#define _DPRINTF_H 1

#include <stdio.h>

extern bool use_debug;

// Debug printf.
#define dprintf(...) \
	do { \
		if (use_debug) { \
			fprintf(stderr, __VA_ARGS__); \
		} \
	} while (false)

#endif  // !defined(_DPRINTF_H)