Commit f7bb88f
authored
Use parantheses around logging macro parameter (#1820)
* Use parantheses around logging macro parameter
This allows the macro to expand "correctly", i.e. macro argument
expression is fully evaluated before use.
Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
* Remove redundant parantheses around macro param
`decltype(X)` already provides sufficient "scoping" to the macro
parameter `X`.
Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>
* Add test case for expressions as logging param
Signed-off-by: Abrar Rahman Protyasha <aprotyas@u.rochester.edu>1 parent 0781ea5 commit f7bb88f
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
232 | 238 | | |
233 | 239 | | |
234 | 240 | | |
| |||
0 commit comments