1
1
mirror of http://git.sesse.net/plocate synced 2025-10-06 04:02:41 +02:00
Files
plocate/dprintf.h

17 lines
245 B
C
Raw Permalink Normal View History

#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)