Synopsis: | Use a semicolon at the end of a function-like macro call. |
Language: | C |
Severity Level: | 6 |
Category: | Preprocessing Directives |
Description: |
Justification The macro caller should use a semicolon to make code much easier to read and maintain. Example ASSERT(r, SOME_ERROR, TRUE) /* WRONG */ ASSERT(r, SOME_ERROR, TRUE); /* RIGHT */ |