...
This CUBE()
macro definition is noncompliant because it fails to parenthesize the replacement list.
Excerpt | ||
---|---|---|
| ||
compliant=no,enclose=yes,compile=yes |
Code Block | ||
---|---|---|
| ||
#define CUBE(X) (X) * (X) * (X) int i = 3; int a = 81 / CUBE(i); |
...
Code Block | ||
---|---|---|
| ||
int a = 81 / CUBE(i); |
expands to
Excerpt | ||
---|---|---|
| ||
compliant=no,enclose=yes,compile=no |
Code Block | ||
---|---|---|
| ||
int a = 81 / i * i * i; |
...