add the CLUTCHCODE macro

This commit is contained in:
Johann Dreo 2021-05-29 18:25:54 +02:00
commit 74c33f6371
2 changed files with 45 additions and 3 deletions

View file

@ -313,6 +313,18 @@ Thus, any call like `ASSERT(error, x > 3);` will be declutchable
with the same configuration than a call to `CLUTCHLOG`.
(De)clutch any code section
---------------------------
The `CLUTCHCODE` macro allows to wrap any code within the current logger.
For instance:
```cpp
CLUTCHCODE(info,
std::clog << "We are clutched!\n";
);
```
Log level semantics
===================