From fc95f6acb9b3ef736247fb3474fa8f8a00cf882b Mon Sep 17 00:00:00 2001 From: cxl Date: Sat, 8 Jun 2019 18:38:21 +0000 Subject: [PATCH] Core: Fixed issue with compilation with USEMALLOC git-svn-id: svn://ultimatepp.org/upp/trunk@13374 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/Diag.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/uppsrc/Core/Diag.h b/uppsrc/Core/Diag.h index 6d51d00c2..75780ba8e 100644 --- a/uppsrc/Core/Diag.h +++ b/uppsrc/Core/Diag.h @@ -240,7 +240,11 @@ void DumpMap(Stream& s, const T& t) { s << LOG_END; } +#ifdef flagUSEMALLOC +inline String AsString(const MemoryProfile&) { return "Using malloc - no memory profile available"; } +#else String AsString(const MemoryProfile& mem); +#endif String CppDemangle(const char* name);