diff options
| author | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 22:31:26 +0000 |
|---|---|---|
| committer | Juli Mallett <jmallett@FreeBSD.org> | 2002-09-17 22:31:26 +0000 |
| commit | cdba64071cada4caf017884bc3ca7eba76c05e18 (patch) | |
| tree | e9bbc739d9ad215c67355ae9b0a1a298016a17b9 /usr.bin/make/make.h | |
| parent | c1a2075e9378925465c85d5b91c9cb00f39fadab (diff) | |
Notes
Diffstat (limited to 'usr.bin/make/make.h')
| -rw-r--r-- | usr.bin/make/make.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/make/make.h b/usr.bin/make/make.h index 465ee38e92630..6976a899e85f8 100644 --- a/usr.bin/make/make.h +++ b/usr.bin/make/make.h @@ -338,6 +338,13 @@ extern int debug; #define CONCAT(a,b) a##b #define DEBUG(module) (debug & CONCAT(DEBUG_,module)) +#define DEBUGF(module,fmt,args...) \ +do { \ + if (DEBUG(module)) { \ + fprintf(stderr, fmt, ##args); \ + fflush(stderr); \ + } \ +} while (0) #define ISDOT(c) ((c)[0] == '.' && (((c)[1] == '\0') || ((c)[1] == '/'))) #define ISDOTDOT(c) ((c)[0] == '.' && ISDOT(&((c)[1]))) |
