From 7a4733c76c0391578fe04fde9cfa19698878c81e Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 20 May 2018 12:11:32 +0800 Subject: Minicargo - Quieten build output --- tools/common/debug.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/common/debug.cpp') diff --git a/tools/common/debug.cpp b/tools/common/debug.cpp index a3fb9956..94d8ed99 100644 --- a/tools/common/debug.cpp +++ b/tools/common/debug.cpp @@ -34,6 +34,14 @@ void Debug_DisablePhase(const char* phase_name) { gmDisabledDebug.insert( ::std::string(phase_name) ); } +void Debug_EnablePhase(const char* phase_name) +{ + auto it = gmDisabledDebug.find(phase_name); + if( it != gmDisabledDebug.end() ) + { + gmDisabledDebug.erase(it); + } +} void Debug_Print(::std::function cb) { if( !Debug_IsEnabled() ) -- cgit v1.2.3