refactor(test): use simpler ASSERT wrapper
This commit is contained in:
parent
293948d934
commit
be48aad4ec
2 changed files with 6 additions and 6 deletions
|
|
@ -314,9 +314,9 @@ The `CLUTHFUNC` macro allows to wrap any function within the current logger.
|
|||
For instance, this can be useful if you want to (de)clutch calls to `assert`s.
|
||||
To do that, just declare your own macro:
|
||||
```cpp
|
||||
#define ASSERT(LEVEL, ...) { CLUTCHFUNC(LEVEL, assert, __VA_ARGS__) }
|
||||
#define ASSERT(...) { CLUTCHFUNC(error, assert, __VA_ARGS__) }
|
||||
```
|
||||
Thus, any call like `ASSERT(error, x > 3);` will be declutchable
|
||||
Thus, any call like `ASSERT(x > 3);` will be declutchable
|
||||
with the same configuration than a call to `CLUTCHLOG`.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue