diff options
author | Pjotr Prins | 2020-09-28 10:04:08 +0100 |
---|---|---|
committer | Pjotr Prins | 2020-09-28 10:04:08 +0100 |
commit | 210a8ec0746dc0606c1319d3ad2d5bcd7ae66429 (patch) | |
tree | ba2c66f40693c2582108548358faa3b6b30a7163 /src/debug.cpp | |
parent | fc5c1760bf8c09e90b27a0fd709d9bda6ed30a76 (diff) | |
download | pangemma-210a8ec0746dc0606c1319d3ad2d5bcd7ae66429.tar.gz |
Display mean
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 5 |
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; |