This rule is Obsolete | |
Synopsis: | Macros should behave like symbolic constants or functions, (as function-like macros). |
Language: | C |
Severity Level: | 5 |
Category: | PREPROCESSING |
Description: |
Macro definitions should not therefore contain '{', '}', ';' or keywords.
Example: #define foreach(e, c) \\\\ S* _iter ## e; \\\\ for (_iter ## e = c; _iter ## e != NULL && ((e = _iter ## e -> val) || 1); _iter ##e = _iter ## e ->next) |