Skip to content
Snippets Groups Projects
Commit a8b2d081 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Nop out dumpStack macro in release builds

parent b5f5f391
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment