1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2024-07-22 01:58:46 -03:00

20 lines
295 B
C
Executable File

#ifndef _DPRINTF_H
#define _DPRINTF_H
extern int options;
#ifndef OPT_DEBUG
# define OPT_DEBUG 0x0001
#endif
#ifdef DEBUG
#define dprintf(x) if( options & OPT_DEBUG ) \
{ \
fprintf(stderr, "%s,%d: ", __FILE__, __LINE__); \
fprintf x; \
}
#else
# define dprintf(x)
#endif
#endif