From 207314d95084a9ced9a1dab305977eea1a16d410 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Tue, 14 May 2024 18:13:55 -0700 Subject: [PATCH] Fix putchar import --- VersionedMap.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/VersionedMap.cpp b/VersionedMap.cpp index 7481717..929de54 100644 --- a/VersionedMap.cpp +++ b/VersionedMap.cpp @@ -1325,13 +1325,21 @@ int64_t VersionedMap::getBytes() const { return impl->getBytes(); } // GCOVR_EXCL_START -void VersionedMap::Impl::printInOrder(int64_t version) { +#ifdef NDEBUG +inline +#endif + void + VersionedMap::Impl::printInOrder(int64_t version) { printInOrderHelper(version, roots.getThreadSafeHandle().rootForVersion(version), 0); } -void VersionedMap::Impl::printInOrderHelper(int64_t version, uint32_t node, - int depth) { +#ifdef NDEBUG +inline +#endif + void + VersionedMap::Impl::printInOrderHelper(int64_t version, uint32_t node, + int depth) { if (node == 0) { return; }