fix CLUTCHCODE

This commit is contained in:
Johann Dreo 2021-06-02 16:04:56 +02:00
commit 4730a76dcc

View file

@ -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.