Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When defining macros, put parentheses around all variable names. This ensures that the macro is evaluated in a predictable manner.

Non-

...

Compliant Code Example

Code Block
#define PRODUCT(A,B) A * B
int a = PRODUCT(3+4, 5)

...