summaryrefslogtreecommitdiff
path: root/src/util/output.h
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-05-04 21:57:57 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-05-04 21:57:57 +0000
commit65d24277bfb9f76b612fa51770d5d63e1d34b528 (patch)
tree023841d60bff520093c40ffeddf40288b97615d3 /src/util/output.h
parent1571e73e83ecb5fec2f2ddd599bd3823e8f532e7 (diff)
Disabling semantic checks in competition mode.
Adding function debugTagIsOn to safely test for tracing in any compilation mode. Removing irrelevant command-line options from usage message in muzzled mode.
Diffstat (limited to 'src/util/output.h')
-rw-r--r--src/util/output.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/output.h b/src/util/output.h
index 79bdd788e..ea96606cb 100644
--- a/src/util/output.h
+++ b/src/util/output.h
@@ -343,6 +343,14 @@ public:
extern NullDebugC debugNullCvc4Stream CVC4_PUBLIC;
extern NullC nullCvc4Stream CVC4_PUBLIC;
+inline bool debugTagIsOn(std::string tag) {
+#ifdef CVC4_DEBUG
+ return DebugOut.isOn(tag);
+#else
+ return false;
+#endif
+}
+
}/* CVC4 namespace */
#endif /* __CVC4__OUTPUT_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback