TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
 
ASML C Coding Standard
Search

Rule:  6.10.1.cChecked automatically with code checker

Synopsis:#ifdef, #ifndef, #if defined and #if !defined are not allowed in external header files.
Language:C
Severity Level:3
Category:Preprocessing Directives


Description:

Justification

Defining code in external header files makes the inclusion very error-prone.

Exceptions:

  • Multiple include guards
  • __cplusplus
  • Cases where compile time checking is critical in preventing calls from one compiler platform to another