summaryrefslogtreecommitdiff
path: root/debug.hh
diff options
context:
space:
mode:
Diffstat (limited to 'debug.hh')
-rw-r--r--debug.hh6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug.hh b/debug.hh
index ca805df011..200585608b 100644
--- a/debug.hh
+++ b/debug.hh
@@ -9,10 +9,14 @@
#define WARN warnout << "warning: "<<__FUNCTION__ << "(): "
extern ostream &warnout ;
extern ostream *mlog;
+extern ostream *nulldev;
extern Dstream monitor; // monitor
+#ifdef NPRINT
+#define mtor *nulldev
+#else
#define mtor monitor.identify_as(__PRETTY_FUNCTION__)
-
+#endif
void error(String s);
void warning(String s);