aboutsummaryrefslogtreecommitdiff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorPjotr Prins2020-09-28 10:04:08 +0100
committerPjotr Prins2020-09-28 10:04:08 +0100
commit210a8ec0746dc0606c1319d3ad2d5bcd7ae66429 (patch)
treeba2c66f40693c2582108548358faa3b6b30a7163 /src/debug.cpp
parentfc5c1760bf8c09e90b27a0fd709d9bda6ed30a76 (diff)
downloadpangemma-210a8ec0746dc0606c1319d3ad2d5bcd7ae66429.tar.gz
Display mean
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index ddd3c48..1014d6e 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -160,6 +160,11 @@ void write(const char *s, const char *msg) {
cout << s << ": " << msg << endl;
}
+void write(const double d, const char *msg) {
+ if (!is_debug_data_mode()) return;
+ cout << d << ": " << msg << endl;
+}
+
void write(const gsl_vector *v, const char *msg) {
if (!is_debug_data_mode()) return;
if (msg) cout << "// " << msg << endl;