Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Consequently, the first time that header.h is #include'd, all of its contents are included. If the header file is subsequently #include'd again, its contents are bypassed.

Wiki MarkupBecause solutions such as this one make it possible to create a header file that can be included more than once, the C standard \ [[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] guarantees that the standard headers are safe for multiple inclusion.

Note that it is a common mistake to choose a reserved name for the name of the macro used in the inclusion guard. See rule DCL37-C. Do not declare or define a reserved identifier.

...

Tool

Version

Checker

Description

Section

LDRA tool suite

Include Page
c:LDRA_Vc:
LDRA_V
Section

243 S

Section

Fully Implemented

Section

ECLAIR

Include Page
c:ECLAIR_Vc:
ECLAIR_V
Section

inclgard

Section

Fully Implemented

...

MISRA Rule 19.5

Bibliography

Wiki Markup\[[Plum 1985|AA. Bibliography#Plum 85] \] Rule 1-14

...

      01. Preprocessor (PRE)