TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  6.10.3.eChecked automatically with code checker

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 */