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
bcb2c23c
Commit
bcb2c23c
authored
11 years ago
by
Richard Linden
Browse files
Options
Downloads
Patches
Plain Diff
BUILDFIX: fixes use of variadic macros for gcc (use ##__VA_ARGS__ to do comma removal)
parent
5762c1d0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcommon/llerror.h
+14
-14
14 additions, 14 deletions
indra/llcommon/llerror.h
with
14 additions
and
14 deletions
indra/llcommon/llerror.h
+
14
−
14
View file @
bcb2c23c
...
...
@@ -302,13 +302,13 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG;
// See top of file for common usage.
/////////////////////////////////
#define lllog(level, once, ...) \
do { \
static LLError::CallSite _site( \
level, __FILE__, __LINE__, typeid(_LL_CLASS_TO_LOG), __FUNCTION__, once, __VA_ARGS__ );\
if (LL_UNLIKELY(_site.shouldLog())) \
{ \
std::ostringstream* _out = LLError::Log::out(); \
#define lllog(level, once, ...)
\
do {
\
static LLError::CallSite _site(
\
level, __FILE__, __LINE__, typeid(_LL_CLASS_TO_LOG), __FUNCTION__, once,
##
__VA_ARGS__ );\
if (LL_UNLIKELY(_site.shouldLog()))
\
{
\
std::ostringstream* _out = LLError::Log::out();
\
(*_out)
//Use this construct if you need to do computation in the middle of a
...
...
@@ -337,16 +337,16 @@ typedef LLError::NoClassInfo _LL_CLASS_TO_LOG;
// NEW Macros for debugging, allow the passing of a string tag
// Pass comma separated list of tags (currently only supports up to 0, 1, or 2)
#define LL_DEBUGS(...) lllog(LLError::LEVEL_DEBUG, false, __VA_ARGS__)
#define LL_INFOS(...) lllog(LLError::LEVEL_INFO, false, __VA_ARGS__)
#define LL_WARNS(...) lllog(LLError::LEVEL_WARN, false, __VA_ARGS__)
#define LL_ERRS(...) lllog(LLError::LEVEL_ERROR, false, __VA_ARGS__)
#define LL_DEBUGS(...) lllog(LLError::LEVEL_DEBUG, false,
##
__VA_ARGS__)
#define LL_INFOS(...) lllog(LLError::LEVEL_INFO, false,
##
__VA_ARGS__)
#define LL_WARNS(...) lllog(LLError::LEVEL_WARN, false,
##
__VA_ARGS__)
#define LL_ERRS(...) lllog(LLError::LEVEL_ERROR, false,
##
__VA_ARGS__)
// Only print the log message once (good for warnings or infos that would otherwise
// spam the log file over and over, such as tighter loops).
#define LL_DEBUGS_ONCE(...) lllog(LLError::LEVEL_DEBUG, true, __VA_ARGS__)
#define LL_INFOS_ONCE(...) lllog(LLError::LEVEL_INFO, true, __VA_ARGS__)
#define LL_WARNS_ONCE(...) lllog(LLError::LEVEL_WARN, true, __VA_ARGS__)
#define LL_DEBUGS_ONCE(...) lllog(LLError::LEVEL_DEBUG, true,
##
__VA_ARGS__)
#define LL_INFOS_ONCE(...) lllog(LLError::LEVEL_INFO, true,
##
__VA_ARGS__)
#define LL_WARNS_ONCE(...) lllog(LLError::LEVEL_WARN, true,
##
__VA_ARGS__)
// DEPRECATED: Use the new macros that allow tags and *look* like macros.
...
...
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