summaryrefslogtreecommitdiff
path: root/src/utilities
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2017-09-16 18:34:11 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2017-09-16 18:34:11 +0200
commitbcf39eb79a8252b9f9b0c31311c7951abc8520ee (patch)
tree55d795f06769134601f017f50d505a6c8904d398 /src/utilities
parent163474e17193268f9f29eebda6b264d1a951b4ee (diff)
Fixed a compilation error and warning under MacOS
Diffstat (limited to 'src/utilities')
-rw-r--r--src/utilities/utilities.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/utilities/utilities.hpp b/src/utilities/utilities.hpp
index 1ba3ab03..e45c606c 100644
--- a/src/utilities/utilities.hpp
+++ b/src/utilities/utilities.hpp
@@ -123,11 +123,14 @@ constexpr auto kBufScalar = "Scalar";
// =================================================================================================
+#ifdef VERBOSE
inline void log_debug(const std::string &log_string) {
- #ifdef VERBOSE
- printf("[DEBUG] %s\n", log_string.c_str());
- #endif
+ printf("[DEBUG] %s\n", log_string.c_str());
}
+#else
+inline void log_debug(const std::string&) { }
+#endif
+
// =================================================================================================