1
1
mirror of http://git.sesse.net/plocate synced 2025-10-05 23:42:49 +02:00
Files
plocate/dprintf.h
2020-10-11 19:09:18 +02:00

17 lines
245 B
C

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