Versions Compared

Key

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

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Other Languages

This rule appears in the C++ Secure Coding Standard as PRE11-CPP. Do not conclude a single statement macro definition with a semicolon.

...

PRE10-C. Wrap multi-statement macros in a do-while loop      01. Preprocessor (PRE)      PRE12-C. Define numeric constants in a portable way