Skip to content

Commit

Permalink
Upgrade to LibComponentLogging 1.1.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
aharren committed Aug 7, 2011
1 parent 7c7ddf2 commit 54f4344
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions Vendor/LibComponentLogging/Core/lcl.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#define _LCL_VERSION_MAJOR 1
#define _LCL_VERSION_MINOR 1
#define _LCL_VERSION_BUILD 3
#define _LCL_VERSION_BUILD 4
#define _LCL_VERSION_SUFFIX ""

//
Expand Down Expand Up @@ -162,16 +162,20 @@ typedef uint32_t _lcl_component_t;
// logging back-end. _lcl_logger has the same signature as lcl_log.
//
#ifdef _LCL_NO_LOGGING
# define lcl_log(_component, _level, _format, ...)
# define lcl_log(_component, _level, _format, ...) \
do { \
} while (false)
#else
# define lcl_log(_component, _level, _format, ...) \
if ((_lcl_component_level[(__lcl_log_symbol(_component))]) >= \
(__lcl_log_symbol(_level))) { \
_lcl_logger(_component, \
_level, \
_format, \
##__VA_ARGS__); \
}
do { \
if ((_lcl_component_level[(__lcl_log_symbol(_component))]) >= \
(__lcl_log_symbol(_level))) { \
_lcl_logger(_component, \
_level, \
_format, \
##__VA_ARGS__); \
} \
} while (false)
#endif

// lcl_configure_by_component(<component>, <level>)
Expand Down

0 comments on commit 54f4344

Please sign in to comment.