diff --git a/indra/llcommon/llcallstack.h b/indra/llcommon/llcallstack.h index b12b561985768d1397acdac9db4b8eb886a182a3..edc0b6c68391711f5201e68df9ab0a4c3d8c43b5 100644 --- a/indra/llcommon/llcallstack.h +++ b/indra/llcommon/llcallstack.h @@ -79,6 +79,7 @@ struct LLContextStatus LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLContextStatus& context_status); +#ifdef ENABLE_DEBUG #define dumpStack(tag) \ static const bool enable_log = debugLoggingEnabled(tag); \ if (enable_log) \ @@ -86,3 +87,6 @@ LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLContextStatus& c LLCallStack cs; \ LL_DEBUGS(tag) << "STACK:\n" << "====================\n" << cs << "====================" << LL_ENDL; \ } +#else +#define dumpStack(tag) +#endif