fix CLUTCHCODE
This commit is contained in:
parent
5f62668d82
commit
4730a76dcc
1 changed files with 2 additions and 2 deletions
|
|
@ -139,11 +139,11 @@
|
|||
|
||||
//! Run any code if the scope matches.
|
||||
#ifndef NDEBUG
|
||||
#define CLUTCHCODE( LEVEL, CODE ) { \
|
||||
#define CLUTCHCODE( LEVEL, ... ) { \
|
||||
auto& logger = clutchlog::logger(); \
|
||||
clutchlog::scope_t scope = logger.locate(clutchlog::level::LEVEL, CLUTCHLOC); \
|
||||
if(scope.matches) { \
|
||||
CODE \
|
||||
__VA_ARGS__ \
|
||||
} \
|
||||
}
|
||||
#else // not Debug build.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue