Versions Compared

Key

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

...

While inline functions are, in general, more suitable for this task (see PRE00-A. Prefer inline or static functions to function-like macros), occasionally they are not feasible. For instance, the when macros are expected to operate on variables of different types; this is well-handled by macros, but not by inline functions.

When multiple statements are used in a macro, they should be bound together in a loop syntactically, so the macro can appear safely inside if-clauses, or other places that expect a single statement or a statement block.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

PRE10-A

high high

likely

low

P???

P9

L2 L???

Related Vulnerabilities

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

...