From 4730a76dccb7e42f039d0df3e729c90438bbd4ce Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 2 Jun 2021 16:04:56 +0200 Subject: [PATCH] fix CLUTCHCODE --- clutchlog/clutchlog.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutchlog/clutchlog.h b/clutchlog/clutchlog.h index b0e2ce2..59a192c 100644 --- a/clutchlog/clutchlog.h +++ b/clutchlog/clutchlog.h @@ -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.