...
Non-compliant Code Example
Code Block |
---|
\#define PRODUCT(A,B) A * B
int a = PRODUCT(3+4, 5)
|
...
Compliant Code Example
Code Block |
---|
\#define PRODUCT(A,B) (A) * (B)
int a = PRODUCT(3+4, 5)
|
...
...
Code Block |
---|
\#define PRODUCT(A,B) A * B
int a = PRODUCT(3+4, 5)
|
...
Code Block |
---|
\#define PRODUCT(A,B) (A) * (B)
int a = PRODUCT(3+4, 5)
|
...