summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/make/util.h')
-rw-r--r--usr.bin/make/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/make/util.h b/usr.bin/make/util.h
index 1d65db0..84fc6b9 100644
--- a/usr.bin/make/util.h
+++ b/usr.bin/make/util.h
@@ -70,11 +70,17 @@ do { \
Debug args ; \
} \
} while (0)
+#define DEBUGM(module, args) do { \
+ if (DEBUG(module)) { \
+ DebugM args; \
+ } \
+ } while (0)
#define ISDOT(c) ((c)[0] == '.' && (((c)[1] == '\0') || ((c)[1] == '/')))
#define ISDOTDOT(c) ((c)[0] == '.' && ISDOT(&((c)[1])))
void Debug(const char *, ...);
+void DebugM(const char *, ...);
void Error(const char *, ...);
void Fatal(const char *, ...) __dead2;
void Punt(const char *, ...) __dead2;
OpenPOWER on IntegriCloud