add the CLUTCHCODE macro
This commit is contained in:
parent
3175e2d87b
commit
74c33f6371
2 changed files with 45 additions and 3 deletions
12
README.md
12
README.md
|
|
@ -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
|
||||
===================
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue