Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
a8b2d081
Commit
a8b2d081
authored
5 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Nop out dumpStack macro in release builds
parent
b5f5f391
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcommon/llcallstack.h
+4
-0
4 additions, 0 deletions
indra/llcommon/llcallstack.h
with
4 additions
and
0 deletions
indra/llcommon/llcallstack.h
+
4
−
0
View file @
a8b2d081
...
@@ -79,6 +79,7 @@ struct LLContextStatus
...
@@ -79,6 +79,7 @@ struct LLContextStatus
LL_COMMON_API
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
LLContextStatus
&
context_status
);
LL_COMMON_API
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
LLContextStatus
&
context_status
);
#ifdef ENABLE_DEBUG
#define dumpStack(tag) \
#define dumpStack(tag) \
static const bool enable_log = debugLoggingEnabled(tag); \
static const bool enable_log = debugLoggingEnabled(tag); \
if (enable_log) \
if (enable_log) \
...
@@ -86,3 +87,6 @@ LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLContextStatus& c
...
@@ -86,3 +87,6 @@ LL_COMMON_API std::ostream& operator<<(std::ostream& s, const LLContextStatus& c
LLCallStack cs; \
LLCallStack cs; \
LL_DEBUGS(tag) << "STACK:\n" << "====================\n" << cs << "====================" << LL_ENDL; \
LL_DEBUGS(tag) << "STACK:\n" << "====================\n" << cs << "====================" << LL_ENDL; \
}
}
#else
#define dumpStack(tag)
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment